• Resolved grizzard

    (@grizzard)


    I want to thank developer of this plugin. I have a problem, I hope that admin help me.

    after activation of the plugin everything works fine, but when I check my site here I have two redirects.

    https://varvy.com/tools/redirects/

    www
    2 Redirect(s)

    http://www.example.net
    301 redirect
    https://www.example.net/
    https://www.example.net/
    301 redirect
    https://example.net/

    I delete the plugin to see if the error still after removing the plugin error remain, and i don,t know why my site still redirecting http to https.

    maybe this is the reason? After activating the plugin, I update my entire article

    (If you have https URL’s on your site, you have probably added content to your site while your site was on https.)

    now my all article redirects http to https, do i need the plugin anymore? also future content will now work as https?

    my htaccess code

    # BEGIN WordPress
    <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
    # php -- BEGIN cPanel-generated handler, do not edit
    # Set the “ea-php56” package as the default “PHP” programming language.
    <IfModule mime_module>
      AddType application/x-httpd-ea-php56-lsphp .php .php5 .phtml
    </IfModule>
    # php -- END cPanel-generated handler, do not edit

    please help me to remove multiple redirect.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Mark

    (@markwolters)

    Hi,

    having multiple redirects is normal. The number of redirects depends on two things, the address the user visits and the WordPress site address in the WordPress general settings.

    If your site address is https:// without www, and a user visits http://www.yourdomain.com, two redirects will happen:

    1) Really Simple SSL will redirect the request to https://, so the request becomes https://www.yourdomain.com
    2) WordPress will redirect to the site address, in this case it’s without www so it will redirect to https://yourdomain.com

    See https://really-simple-ssl.com/knowledge-base/avoid-landing-page-redirects/ for more information about landing page redirects.

    We recommend to keep the plugin activated after moving to SSL since it’s very lightweight. Do note that disabling the plugin via the plugins overview will revert the site back to http://. If you want to do without the plugin, but remain on SSL, check out the following article: https://really-simple-ssl.com/knowledge-base/can-deactivate-really-simple-ssl-activating-ssl/

    Mark

    Thread Starter grizzard

    (@grizzard)

    thanks a lot markwolters for answer.

    Do note that disabling the plugin via the plugins overview will revert the site back to http://

    plugin is removed but redirecting http to https still working why?

    is there any code to add in .htaccess for direct move of

    http://www.example.net to https://example.net/

    Plugin Contributor Rogier Lankhorst

    (@rogierlankhorst)

    If you deactivated the plugin through the plugins overview all changes have been removed, but your browser might still redirect to https. Try clearing your browser cache.

    A redirect as you describe is NOT recommended. It is best practice for https to redirect in two steps. Otherwise, if you set HSTS on your domain, it might not get set on one of the domains. You won’t be able to add your site to the HSTS preload list with such a configuration.

    So the best practice for redirection is:
    http://www.example.com
    https://www.example.com //HSTS can now be set on the www domain
    https://example.com //HSTS can now be set on the non www domain.

    See for more details this article:
    https://really-simple-ssl.com/knowledge-base/avoid-landing-page-redirects/

    If you still want to bypass the redirect, it is described in the article how to do this.

    Thread Starter grizzard

    (@grizzard)

    thanks.

    but in this article he is saying to avoid duplicate content, could u explain please?

    https://arrayinternet.com/blog/wordpress-redirect-http-to-https/

    The example also shows how you can get rid of the www at the beginning of your URL by redirecting to the non-www version. If not already taken care of, then this is something you might want to consider as well in order to prevent issues with duplicate content on your website, which would be bad for SEO and may hurt your rankings in search engines like Google, Bing or Yahoo.

    Plugin Contributor Rogier Lankhorst

    (@rogierlankhorst)

    As long as the redirect is 301, there will be no duplicate content. Really Simple SSL adds a 301 redirect.

    Thread Starter grizzard

    (@grizzard)

    thanks a lot for answer

    what is the difference between these two below code?

    RewriteCond %{HTTPS} !=on [NC]

    and

    RewriteCond %{HTTPS} off

    also using below code at the top of .htaccess move http://www.example.net to https://example.net without multiple redirect.

    RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
    RewriteRule ^(.*)$ https://%1/$1 [R=301,L]

    does RewriteEngine On is needed to write?

    Plugin Author Mark

    (@markwolters)

    Hi,

    the RewriteCond %{HTTPS} !=on [NC] and RewriteCond %{HTTPS} off basically do the same. The != stands for not equal to. So not equal to and off are very much alike. Which line is needed can differ from server to server. The RewriteEngine On is needed to process the rewrites, setting RewriteEngine to On will make sure rewrites get done.

    Mark

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘multiple redirect’ is closed to new replies.