Viewing 1 replies (of 1 total)
  • Plugin Support ivanatanasov

    (@ivanatanasov)

    @javierojuel – Ivan Atanasov from SiteGround here.

    By activating the HTTPS via SG Optimizer, the following lines will be added to your .htaccess file:

    # HTTPS forced by SG-Optimizer
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
    </IfModule>

    This is also a 301 redirect, however, it does not rely on different lines for www and non-www, instead it catches all URLs.

    I was not able to find the 301 redirects you are describing in your .htaccess file. They might have been left residue from previous modifications you were making on the site.

Viewing 1 replies (of 1 total)
  • The topic ‘Multiple 301 redirections to https’ is closed to new replies.