404 Error
-
If I activate “Activate Root Folder BulletProof Mode” it breaks my site with 404 errors and index.php not found. I can activate this protection on the wp-admin folder without any problems. I do have an index.php file. I have tested this several times and each time I deactivate bps on the root folder my site works fine (except I have to edit one line RewriteRule . /jlwp/index.php [L] on the standard .htaccess file that deactivating BPS creates. As soon as i activate BPS on the root again all pages except the home page come up with the errors above. This seems to have happened with the last updates but not entirely sure as I haven’t been through any website checks recently.
The only thing I can think of is that I do not have wordpress installed into my site’s main folder, it’s in a subfolder under the main domain folder and I think when BPS is creating the root .htaccess file it is assuming that I have wordpress loaded on the main domain folder (judging by the fact that the deactivate replacement standard .htaccess code did not take account of my sites wp folder setup) and then writing the code with that assumption? Could this be the problem and if so how can i correct this so I can use the bps root .htaccess file protection?
The root .htaccess file I am talking about is in the subfolder that WP is installed in on my domain so it is in the root of the WP installation and not in the main domain folder itself. This does have an .htaccess file too which has the following code
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.\websitename\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.websitename\.com$
RewriteRule ^/?$ “http\:\/\/www\.websitename\.com\/jlwp” [R=301,L]I do have to make sure that I have this line on the standard .htaccess file where wordpress is loaded or else the website pages other than the homepage don’t work. RewriteRule . /jlwp/index.php [L].
The other thing I tried and again not sure why this would make the difference but I am using custom permalinks http://wwww.websitename.com/jlwp//%category%/%postname%.html. If I use the default WP permalink structure then the bps on the root .htaccess file is fine and my pages all work. As soon as I try to change back to the preferred custom permalink settings mentioned above WP of course tells me it cannot change my .htaccess file and that I need to change it manually including the line I have shown above and no pages on my website apart from the homepage work any longer all producing 404 and index.php file not found errors.
I hope I have given as much information as I can to help figure out what the problem may be.
Many thanks,
K
The topic ‘404 Error’ is closed to new replies.