redirect https?

#135986
  • Resolved cartomanzia fun
    Rank Math free

    Hello,
    I wanted to ask if for positioning on google it was better to put a permanent 301 redirect from http to https on the httacess or to let google understand which page is canonical?
    my website http://www.cartomzia.fun has all the permanent links pointing to the https version, but if you manually delete the s from https from the address bar it allows you to view the same page but without https.

    If anything, the line to add would be this:

    SSL_REDIRECT:cartomanzia.fun
    RewriteEngine on
    RewriteCond %{HTTPS} off
    RewriteCond %{HTTP_HOST} (www\.)?cartomanzia.fun
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    # DO NOT REMOVE THIS LINE AND THE LINES BELLOW SSL_REDIRECT:cartomanzia.fun

    I ask it becouse too many redirections can slow down web site?

    thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • Danial
    Rank Math business

    Hello,

    Thank you for contacting us.

    It is better to consolidate all your links to point to 1 version.

    The redirection should be like this:

    
    RewriteEngine On
    RewriteCond %{HTTP_HOST} www.example.com
    RewriteRule (.*) https://example.com/$1 [R=301,L]
    

    OR

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

    I would suggest talking to your hosting provider and ask them to set this for you.

    You would also need to ensure your WordPress SiteURL & Site Address URL to be pointing correctly.

    Your GSC needs to be pointing the same as well to ensure that everything works.

    I hope this resolves your issue.

    thank i tried that but is it true with a permanent redirect web site come a little slower, and for seo rank it’sb better a speeder web site or was only a coincidence ?

    Hello,

    Thank you for keeping in touch with us.

    Rank Math’s redirection feature should not cause any slow down to the site since we use WordPress’s Redirect function.

    If you think this is caused by the plugin, you may evaluate your website to any website speed tester like gtmetrix.com or we might need to check your affected URL.

    We are looking forward to helping you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

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

The ticket ‘redirect https?’ is closed to new replies.