• Hi,
    I turned to https/SSl on my website, while checking redirects in https://varvy.com/tools/redirects/ tool, i can see there are 2 redirects. How to fix this.

    The tool shows:

    no www
    2 Redirects

    https://dhyannt.com
    301 redirect
    https://www.dhyannt.com/
    https://www.dhyannt.com/
    301 redirect
    https://www.dhyannt.com/

    My .htacces code:

    `

    # 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>

    # END WordPress

    • This topic was modified 4 years, 9 months ago by jeejoh.
Viewing 1 replies (of 1 total)
  • Plugin Contributor Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    The SSL redirects have nothing to do with this plugin, which does not touch that aspect of your WordPress site.

    You’re seeing redirects because your server is set up to show https://www.example.com/ and you went to https://example.com

    0. https://example.com
    1. https://www.example.com/
    2. https://www.example.com/

Viewing 1 replies (of 1 total)
  • The topic ‘Multiple redirects issue’ is closed to new replies.