• Resolved joinfof

    (@joinfof)


    I’ve followed the instructions here and got it working with a few other sites I’ve got set up with both WP Super Cache and BulletProof, but I’m getting a strange request in my WP Super Cache Advanced Settings tab for a larger site. It says Rules must be added to /home/redacted/public_html/wp-content/cache/.htaccess too:

    # BEGIN supercache
    <IfModule mod_mime.c>
      <FilesMatch "\.html\.gz$">
        ForceType text/html
        FileETag None
      </FilesMatch>
      AddEncoding gzip .gz
      AddType text/html .gz
    </IfModule>
    <IfModule mod_deflate.c>
      SetEnvIfNoCase Request_URI \.gz$ no-gzip
    </IfModule>
    <IfModule mod_headers.c>
      Header set Vary "Accept-Encoding, Cookie"
      Header set Cache-Control 'max-age=3, must-revalidate'
    </IfModule>
    <IfModule mod_expires.c>
      ExpiresActive On
      ExpiresByType text/html A3
    </IfModule>
    # END supercache

    I already have code provided from WP Super Cache and put it into the top box of my BP custom code box. Do I need to add the code above to my /cache/.htaccess file too? I haven’t been able to find any documentation on this.

    https://www.ads-software.com/plugins/bulletproof-security/

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

    (@aitpro)

    Hmm your guess is as good as mine. Do you see that htaccess file in that folder: /home/redacted/public_html/wp-content/cache/.htaccess and does it already have the code you posted above in that file? If not, then I guess you need to either create that WP Super Cache htaccess file or manually add that code in that .htaccess file. Or another possibility is WP Super Cache is just displaying a standard static message with that .htaccess code. ie nothing needs to be done, but if something did need to be done then that would be the .htaccess code you would manually create/use.

    Thread Starter joinfof

    (@joinfof)

    Ok I’ll try it out and see how it goes. It doesn’t seem to be negatively affecting my site, but I’m still looking into it. Thanks for the reply.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Question about WP Super Cache and custom code’ is closed to new replies.