• Resolved Site designer

    (@site-designer)


    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

    https://ww.wp.xz.cn/plugins/bulletproof-security/

Viewing 2 replies - 16 through 17 (of 17 total)
  • Plugin Author AITpro

    (@aitpro)

    Just for the heck of it I retested BPS again on several different sites with WordPress 4.1.1. The correct htaccess code is created for WordPress root installation sites, WordPress subfolder sites and WordPress GWIOD sites. So whatever is occurring on your particular site has to do with either something you have installed on your website or some sort of server configuration issue. I guess whatever that is will remain a mystery. 😉

    Plugin Author AITpro

    (@aitpro)

    This thread has been resolved, but we still receive email notifications when a new post is created in a thread that has been resolved. So if/when you do figure out what is going on with this site please post that info. Thanks.

    Thread Start Date: 2-20-2015 to 2-21-2015
    Thread Resolved/Current Date: 2-25-2015
    Comments: This is some kind of isolated issue/problem with this particular website and not an issue/problem with the BPS plugin itself. A workaround has been used in this particular case – manually editing the root .htaccess file.

Viewing 2 replies - 16 through 17 (of 17 total)

The topic ‘404 Error’ is closed to new replies.