Redirect Chains

#649748
  • Resolved Anonymous
    Rank Math free

    We are redesigning our website and shifting to WP and Rankmath. As part of the process we are –

    Changing from www urls to non www urls – so needing 301 redirects
    Changing some page urls and removing some pages – so needing 301 redirects

    But this means we could potentially create redirect chains, for example – (A) http://www.gasmate.co.nz/product-1 redirect to (B) gasmate.co.nz/product-1 redirect to (C) gasmate.co.nz/product-new1

    We are preparing a csv to import to Rankmath of source and destination urls, but is there a way we can set it up so they all just redirect A to C above and not A – B- C ?

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting Rank Math and bringing your concern to our attention.

    Unfortunately, Rank Math’s redirection feature does not support the HTTP or WWW redirect. In this case, you may try redirecting them via .htaccess.

    However, here’s a sample redirect rules to avoid the chain redirects on your site:

    # 301 REDIRECT HTTP TO HTTPS AND WWW TO NON-WWW
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{HTTPS} off [OR]
    RewriteCond %{HTTP_HOST} ^www\. [NC]
    RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC]
    RewriteRule ^ https://%1%{REQUEST_URI} [L,NE,R=301]
    </IfModule>

    Please generate a backup of your .htaccess first before making any changes as it is a sensitive file.

    If you need assistance modifying the file, you can get in touch with your web host and also check the redirect.

    Moreover, you should get in touch with your web host to check the file to check the redirect and avoid conflicting issues.

    Hope that helps.

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

The ticket ‘Redirect Chains’ is closed to new replies.