• blaue567

    (@blaue567)


    Hi,

    I’ve tried for some time to set the HSTS header for my WordPress site through the .htaccess file but securityheaders.com always reported that it didn’t find an HSTS header. Therefore I was looking for another solution and stumbled across your plugin.

    At first it wasn’t working but after adding this code to my .htaccess file everything seemed to worked fine:

    <IfModule mod_headers.c>
    RewriteEngine On
    RewriteCond %{HTTPS} !=on
    RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    </IfModule>
    

    But when I try to use the W3 Total Cache plugin, I get some problems. After enabling the caching plugin, my website doesn’t pass the HSTS test anymore. I expected this because I was reading that the combination of your plugin and a caching plugin may cause problems. To fix this, I checked the option which deactivates the rewriting of the header and pasted the displayed code into my .htaccess file. However, after doing this my website wasn’t accessible anymore and showed me a 500 internal server error. When I remove the code, everything is working again.

    Do you have any idea on how to fix this so I can use both W3 Total Cache and your plugin?

    Thanks!

  • The topic ‘Using the plugin in combination with W3 Total Cache’ is closed to new replies.