• Resolved hansnielsen

    (@hansnielsen)


    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 Security

    Is 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!

Viewing 16 replies (of 16 total)
  • Plugin Support Jarno Vos

    (@jarnovos)

    Hi @pzsniper,

    No, as I mentioned in my previous comment; this adjustment is expected in the release after 9.4.3.

    I had also shared a workaround in this thread to solve the issue right away, so you don’t have to wait for the fix; which is to switch to the “WordPress 301 redirect” in the plugin’s settings (Security -> Settings -> SSL -> Redirect method).

    Kind regards, Jarno

Viewing 16 replies (of 16 total)

The topic ‘.htaccess redirect code issue?’ is closed to new replies.