• Resolved jeejoh

    (@jeejoh)


    The tool https://varvy.com/tools/redirects/ tells me there are 2 redirects, when i check my redirects.

    How to solve this?

    .htaccess coding:

    # HTTPS forced by SG-Optimizer
    <IfModule mod_rewrite.c>
    RewriteCond %{HTTP_HOST} !^www\. [NC]
    RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    RewriteCond %{HTTP:X-Forwarded-Proto} !https
    RewriteCond %{HTTPS} off
    RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    </IfModule>
    # END HTTPS
    # BEGIN WordPress
    # The directives (lines) between BEGIN WordPress and END WordPress are
    # dynamically generated, and should only be modified via WordPress filters.
    # Any changes to the directives between these markers will be overwritten.
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Stanimir Stoyanov

    (@sstoqnov)

    SiteGround Representative

    Hey @jeejoh

    The two redirects are generated because you have enabled Cloudflare www redirection.

    In such a case, the Cloudflare redirects to www, and then our plugin redirects to https.

    If you disable the Cloudflare www redirection, change your home URL to https://www.dhyannt.com and disable and then enable the Force HTTPS, the rules which our plugin adds will eliminate the additional redirect.

    Regards,
    Stanimir

Viewing 1 replies (of 1 total)
  • The topic ‘Multiple HTTP redirects on my website’ is closed to new replies.