RewriteBase in .htaccess File

Discussion in 'Scripts, 3rd Party Apps, and Programming' started by Al Lua, Oct 21, 2014.

  1. Al Lua

    Al Lua Member

    Messages:
    46
    Likes Received:
    0
    Trophy Points:
    6
    I am currently maintaining the Science Bowl Team website for my school, Daniel Wright.
    Utilizing a chat function, I'm using phpFreeChat. Previously, it has been working, however, something happened, and I haven't changed anything myself, and this error pops up.
    Code:
    mod_rewrite must be enabled server side and correctly configured. "RewriteBase" could be adjusted in server/.htaccess file.
    Don't see a htaccess file, at least in /server, or more of I don't find one at all.

    The URL for the website is http://dwsbteam.tk/. The chat function is in the private members section. I will not create a guest account for testing purposes.
     
  2. bdistler

    bdistler Well-Known Member Prime Account

    Messages:
    3,534
    Likes Received:
    195
    Trophy Points:
    63
    #1 - I assume there is a [ .htaccess ] file - your site was working - and you did not delete it
    be sure to select [ Show Hidden Files (dotfiles) ] in cPanel X3 before you enter [ File Manager ]

    #2 - There are some issues with your sever [ xo1 ] - see --> [ http://status.x10hosting.com/ ]
    that may have to do with your "mod_rewrite" issue
     
  3. Al Lua

    Al Lua Member

    Messages:
    46
    Likes Received:
    0
    Trophy Points:
    6
    I tried putting

    Code:
    # invoke rewrite engine
        RewriteEngine On
        RewriteBase /~new/
    
    # add trailing slash if missing
        rewriteRule ^(([a-z0-9\-]+/)*[a-z0-9\-]+)$ $1/ [NC,R=301,L]
    in the .htaccess file I found in public_html.

    No prevail. I still receive the error

    Code:
    mod_rewrite must be enabled server side and correctly configured. "RewriteBase" could be adjusted in server/.htaccess file.
    
    in phpFreeChat.

    I'm going to admit, I'm a complete noob at server and htaccess and all this... I'm only the web developer. :)
     
  4. Dead-i

    Dead-i x10Hosting Support Ninja Community Support

    Messages:
    6,084
    Likes Received:
    364
    Trophy Points:
    83
    Hi Al Lua,

    I'm currently not seeing a hosting account linked to your forum account. Please could you either link the accounts in your cPanel, or provide me with your cPanel username? :)

    Thank you,
     
  5. Al Lua

    Al Lua Member

    Messages:
    46
    Likes Received:
    0
    Trophy Points:
    6
    The website is dwsbteam.tk, or dwsbteam.x10.mx. Email would be dwsbteam@live.com. I believe username is dwsbteam

    Thank you!
     
  6. Al Lua

    Al Lua Member

    Messages:
    46
    Likes Received:
    0
    Trophy Points:
    6
    This issue is still persisting, any solutions?
     
  7. Al Lua

    Al Lua Member

    Messages:
    46
    Likes Received:
    0
    Trophy Points:
    6
    I am starting to be driven nuts by the fact I'm being completely ignored for already a whole week... :cautious:
    If I'm stuck fixing it myself, well, I guess let it be that way...... :banghead:
     
  8. bdistler

    bdistler Well-Known Member Prime Account

    Messages:
    3,534
    Likes Received:
    195
    Trophy Points:
    63
    I assume this has something to do with - recently x10hosting has gone back to running [ Apache ] from [ LiteSpeed ] on the free-hosting servers
    you should add more tests - but here is a start...
    Code:
    RewriteEngine on
    RewriteBase /
    RewriteCond %{REQUEST_URI} /+[^\.]+$
    RewriteRule ^(.+[^/])$ %{REQUEST_URI}/ [R=301,L]
    
     
    Last edited: Nov 2, 2014
  9. leafypiggy

    leafypiggy Manager of Pens and Office Supplies Staff Member

    Messages:
    3,819
    Likes Received:
    163
    Trophy Points:
    63
    This is not a server issue. It is a scripting issue. As the web developer and webmaster, it is your responsibility to take care of this.

    I'm moving this thread to Scripts and 3rd Party Applications.
     
    • Like Like x 1

Share This Page