Redirect link not working

  • 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)
  • 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.

    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>

    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.

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

    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.

    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.

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

You must be logged in to reply to this ticket.