redirect chain warning

#171455
Viewing 11 replies - 1 through 11 (of 11 total)
  • Faisal
    Rank Math free

    i added a video to show that redirect can not be activated

    Hello,

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for the delay and for any inconvenience this issue may have caused you.

    To redirect all your website pages from www to non-www, you may need to add the following lines in your website’s .htaccess file:

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

    Note: You would need to replace yourdomain.com with your actual domain name.

    I hope that helps. Thank you, and looking forward to your update.

    Faisal
    Rank Math free

    This should be added to end of current htaccess?

    Hello,

    Thank you for the follow-up, and sorry for the delay.

    You can add this code at the very top or first line of your .htaccess file.

    I hope that helps. Thank you, and looking forward to your update.

    Faisal
    Rank Math free

    I applied the rule, but still getting warning ,see screenshot. Please check if the rules are applied correctly.

    https://i.imgur.com/LA8wM53.jpeg

    Hello,

    Thank you for the update, and sorry for the delay.

    I’ve checked your site, and it seems that it is already redirecting. This might be a false positive report as you will see that your site with WWW will redirect smoothly to non-WWW. You can also check using this tool.
    Redirect

    Please clear your website and browser’s cache as well to see the changes.

    I hope that helps. Thank you, and please don’t hesitate to contact us anytime if you need further assistance with anything else.

    Faisal
    Rank Math free

    Hello, I do see an issue with the first format, http://www.telcocloudbridge.com, as it is showing double redirects, this is exactly the warning raised by AHREF tool. They are recommending to have always a single redirect. How can I solve this issue.

    Hello,

    Thank you for the follow-up, and sorry for the delay.

    Could you please confirm how are you redirecting your site from http to https? Are you using any plugin or it is also hardcoded in your .htaccess? You can also share your .htaccess here to check further.

    Thank you, and looking forward to your update.

    Faisal
    Rank Math free

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Faisal
    Rank Math free

    i have added htaccess data into sensitive area

    Hello,

    Thank you for the follow-up.

    I’ve checked your .htaccess and the redirect for www to non-www is already present.
    You can try this code in your .htaccess to redirect your website from http to https and www to non-www. (replace the website with your actual website name)

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

    If that didn’t help, you can get in touch with your web host as they are in a better position redirecting your website from http to https. If you have an SSL, your web host should be able to help you do that.

    I hope that helps. Thank you, and please don’t hesitate to contact us anytime if you need further assistance with anything else.

    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 11 replies - 1 through 11 (of 11 total)

The ticket ‘redirect chain warning’ is closed to new replies.