.htaccess redirect code issue?
-
Hello,
The redirect code that is placed in my .htaccess file by the Really Simple Security plugin seems to be causing issues with my cache plugin. All pages and posts (except the homepage) on my site are being blocklisted from cache warmup in the cache plugin, and the cache plugin support staff believes it has to do with the .htaccess redirect code.
This is the code added to my .htaccess file:
#Begin Really Simple Security
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
</IfModule>
Options -Indexes
#End Really Simple SecurityIs this the correct code? I do not recognize this part of the code:
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/Has that part of the code been there before? Or has something changed during a plugin update?
Thanks!
The topic ‘.htaccess redirect code issue?’ is closed to new replies.