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”
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.