Redirect link not working

#62879
  • Resolved Shala
    Rank Math free

    Hi,
    Hope you are well. I’m having trouble getting the redirect link to work. I’ve read directions and even several support threads but no luck!

    I’m trying to redirect:

    https://www.guardiansofourdependents.com

    to

    https://guardiansofourdependents.org

    It works when you click on the .com link directly in Rankmath but it does not work when you go to the site directly.

    Maybe I missed something? I can’t figure out what I’m doing wrong and would appreciate some help!

    Thank you!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Todd
    Rank Math free

    Hello Shala,

    Thanks for getting in touch with us.

    We are sorry but you cannot redirect your homepage to any other URL with Rank Math.

    You might want to use a .htaccess redirect for that.

    Let us know if you need our help with anything else.

    Shala
    Rank Math free

    Okay, thank you. I tried this and it doesn’t seem to be working, any suggestion what I should try instead?

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^guardiansofourdependents\.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www\guardiansofourdependents\.com$
    RewriteRule (.*)$ https://guardiansofourdependents.org/$1 [R=301,L]
    </IfModule>

    Alberto
    Rank Math business

    Hello,

    You can try this code, it will redirect every URL (with their params) to the other domain (with the same URL structure):

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule ^(.*)$ https://guardiansofourdependents.org/$1 [R=301,L]
    </IfModule>

    Looking forward to help you.

    Shala
    Rank Math free

    Hi,
    Thank you, but no luck! Maybe I need to change DNS servers of the .com site to point to the .org site?

    Alberto
    Rank Math business

    Hello,

    It shouldn’t be necessary and it is really weird that the code I shared doesn’t work for you since it is the standard code for this kind of redirection. I would suggest you contact your hosting support to check if the mod_rewrite module is working and if yes, why the redirection is not working since it seems it could be a server-side issue.

    Looking forward to help you.

    Shala
    Rank Math free

    Okay, thank you. This is what I”m being told by Cloudways:

    “Actually, this domain “www.guardiansofourdependents.com” is not pointed to your Cloudways server IP and that is why htaccess is rule is not working when you access .com domain.

    To make the rule work, both domain should be pointed to your Cloudways server IP so that it can redirect:
    https://www.whatsmydns.net/#A/www.guardiansofourdependents.com&#8221;

    Hello,

    Thank you for contacting Rank Math today.

    Unfortunately your situation requires a dns resolution and the 301 redirection may not work for you. You will need to get in touch with your host/ DNS provider to help you to point your old domain to your new domain. You can also check out this article on how to redirect domain a to domain b.

    Hoping that helps 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 7 replies - 1 through 7 (of 7 total)

The ticket ‘Redirect link not working’ is closed to new replies.