301 Redirect of a home page

#96363
  • Resolved Dr. Joe Pazona
    Rank Math free

    I’ve successfully been able to active 301 redirects of all 15 pages of our website. All are working perfectly well except the home page. There is no sub page name of the Source URL and I’m wondering if that’s why it’s not being recognized. I’ve used the URL slug as the Source URL but that doesn’t seem to be working either. See attached screen shot. https://ibb.co/xDnJQJp

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    I assume you are trying to redirect your domain versions to your correct/main domain version. By this I mean all non www and https to your https and www URL. Rank math redirection only uses the slug to redirect pages/post. This is the part after your domain name and therefore cannot redirect your domain name.

    This can be done by adding the following rewrite rules to your htaccess(Rank math > General Settings > htaccess)

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

    Change yourdomain to your actual domain. if this doesn’t help, do let us know. We are here to assist you.

    Looking forward to helping you. 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 ‘301 Redirect of a home page’ is closed to new replies.