• Resolved everintransit

    (@everintransit)


    Hello, I just installed the WP Rocket (caching plugin) which adds lots of code to the the root .htaccess file. I then clicked “lock htaccess file” so that the file would be secure.

    Then I got this error message:

    BPS Alert! Your site does not appear to be protected by BulletProof Security
    Go to the Security Modes page and click the Create secure.htaccess File AutoMagic button and Activate Root Folder BulletProof Mode.
    If your site is in Default Mode then it is NOT protected by BulletProof Security. Check the BPS Security Status page to view your BPS Security Status information.

    When I went into the “Security Modes” page as directed and clicked Create Secure.htaccess file, and then activated it in the root file, I noticed that it cleared all of the WP Rocket code that the plugin added to ensure the site will cache properly.

    I reinstalled the plugin to get the Wp Rocket code back, but now I”m getting the same BPS error message.

    Can you help me figure out how to make your plugin work with WP Rocket?

    https://wordpress.org/plugins/bulletproof-security/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author AITpro

    (@aitpro)

    https://wordpress.org/support/topic/where-do-i-put-custom-code?replies=7

    1. Copy and paste the WP Rocket htaccess code to the BPS CUSTOM CODE TOP PHP/PHP.INI HANDLER/CACHE CODE text box.
    2. Click the Save Root Custom Code button.
    3. Go to the Security Modes page, click the Create secure.htaccess File AutoMagic button and activate Root folder BulletProof Mode.

    Thread Starter everintransit

    (@everintransit)

    Great, thanks.

    But one other thing–the support guy for another plugin said that BPS won’t actually do anything for my site because I’m hosted on an NGINX server (not Apache), so locking the .htaccess file is not necessary.

    Is this true?

    Plugin Author AITpro

    (@aitpro)

    It would depend on the server setup. The most common Nginx/Apache server setup is to have Nginx on the frontend and Apache on the backend to process php code and htaccess code. If you have a “pure” Nginx server without Apache in the mix then I assume Nginx will just ignore the Apache htaccess code since Nginx uses similar, but different code.

    Go to the BPS System Info page and post this info about your website/server:
    Server Type:
    Operating System:
    WP Filesystem API Method:
    Server API:

    Thread Starter everintransit

    (@everintransit)

    Okay, here it is. It does say Apache… does this help?

    Server Type: Apache
    Operating System: Linux
    WP Filesystem API Method: direct
    Server API: cgi-fcgi CGI Host Server Type

    Plugin Author AITpro

    (@aitpro)

    Yep that means that you have Apache on the backend processing php code and htaccess code which of course means that you can use htaccess code on your website/server. So disregard what the support person told you. 😉 You may or may not be able to lock the root htaccess file due to server restrictions so the only way to find that out is try to lock your root htaccess file. Connect to your site with FTP while you are testing this in case your server crashes due to NOT allowing the root htaccess file to be locked. If the server crashes delete the root htaccess file, login to your site and then click the Turn Off AutoLock button.

    Thread Starter everintransit

    (@everintransit)

    Thanks, those directions worked and now it appears the code is in the file and it is locked.

    Thank you!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Just installed WP Rocket (caching plugin) and BPS wipes out the .htaccess code’ is closed to new replies.