• Resolved Copiaurbietorbi

    (@copiaurbietorbi)


    Good day folks,

    To have less landing page redirects we used the code you suggested here:

    https://really-simple-ssl.com/knowledge-base/avoid-landing-page-redirects

    As follows:

    #Redirect non-www to www
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{HTTP_HOST} !^www\.
    RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]
    </IfModule>

    We also have the plugin configured like this:

    Mixed content fixer – ON
    Enable WordPress 301 redirection to SSL – ON
    Enable 301 .htaccess redirect – ON
    Enable Javascript redirection to SSL – OFF
    Debug – ON
    Stop editing the .htaccess file – OFF
    Use alternative method to fix mixed content – OFF
    Dismiss all Really Simple SSL notices – OFF

    However, when we run the speedtest on gtmetrix we still have this:

    There is 1 redirect

    https://website.com/ redirects to https://www.website.com/

    Any suggestions on how to take care of this issue?

    In advance, thank you for your help and interest.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    Hi @copiaurbietorbi,

    You have one redirect. If you don’t want to redirect to https at all, you should disable the redirect in the settings as well as your custom redirect in the .htaccess.

    This of course not a good idea. As your site is on https now, you want all visitors to get redirected to https. To do otherwise would be very bad for your SEO, because of duplicate content issues.

    Your custom redirect is also not a best practice, I strongly recommend to remove it. As explained in the above article, a secure redirect passes through both the www and non www domain. Although tools like gtmetrix give a warning about this there is no seo or speed problem here. The devs of this tool just never considered SSL, duplicate content SEO issues or security.

    Thread Starter Copiaurbietorbi

    (@copiaurbietorbi)

    Hi Rogier,

    Thank you for getting back to us. Based on your suggestion, we removed the code that we shared.

    Could you tell us if we need to change some of the settings in the plugin that we also shared besides the action taken?

    Thank you for your help.

    Plugin Author Mark

    (@markwolters)

    Hi @copiaurbietorbi,

    you can disable the WordPress 301 redirect option. It is not required as the .htaccess redirect option is active and taking care of the redirect to https://. Besides that, your settings are set up correctly.

    Thread Starter Copiaurbietorbi

    (@copiaurbietorbi)

    Hello Mark,

    We’ll do that. Thank you for your help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Avoid landing page redirects’ is closed to new replies.