Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

[Solved] URL not found, additional 404 error problem after .htaccess mod

edited October 2012 in Vanilla 2.0 - 2.8

Hi,

I have this strange problem and i could not find any answer to it so posting here. Please help.

My forum http://www.pcsexam.com/forum/index.php was working fine this morning. But today i created some 301 redirects in the .htaccess file and my forum stopped working all pages beyond index page of forum show this error.

Not Found

The requested URL /forum/discussion/3/how-to-prepare-gs- was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


I tried deleting the edited .htaccess file to blank one but did not work.

Can anyone give me an idea what might have gone wrong.

Regards
Raj

Tagged:

Comments

  • OOOPS found what the problem was by mistake deleted the .htaccess file in forum directory instead of root one. This forum htaccess file had this code.

    Original

    If you modify this file then change the above line to: # Modified


    RewriteEngine On
    # Certain hosts may require the following line.
    # If vanilla is in a subfolder then you need to specify it after the /.
    # (ex. You put Vanilla in /forum so change the next line to: RewriteBase /forum)
    # RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php\?p=$1 [QSA,L]

    incase if someone else has this problem and does not have backup file also.

Sign In or Register to comment.