Hello,
Thank you for reaching out to us with your concern about redirecting the homepage to an external site using Rank Math. To redirect the homepage to an external site, you can follow these steps:
- Go to your WordPress admin dashboard.
- Navigate to Rank Math > Redirections.
- In the Redirections panel, enter the homepage URL you wish to redirect in the Source URL field.
- Enter the URL of the external site where you want to redirect the homepage in the Destination URL field.
- Click on the Add Redirection button to create the 301 redirect.
If you have any more URLs that need to be redirected, you can also add them in bulk using the same process.
If you encounter any issues or need further assistance, please feel free to ask. We are here to help!
Best regards.
Sources:
How to Fix “Duplicate, Google Chose Different Canonical than User” » Rank Math
Solving Redirection Issues Using Rank Math SEO Plugin » Rank Math
How to Import Redirection Plugin Data & Migrate to Rank Math SEO » Rank Math
How to Fix ‘Duplicate, Submitted URL Not Selected as Canonical’ Issue in Google Search Console » Rank Math
How to Fix ‘Duplicate Without User-Selected Canonical’ Status in Google Search Console » Rank Math
Hi thanks for the speedy help.
I have tried that and I get the error message:
“Please add at least one valid source URL.”
I am entering the full homepage URL. Essentailly just the domain name.
https://mydomian.com
Hello,
Thank you for contacting us and sorry for any inconvenience that might have been caused due to that.
Unfortunately, Rank Math doesn’t handle your homepage redirection. The best way to achieve this redirection is via the .htaccess
file. You can follow this URL for more details on how you can do that: https://chemicloud.com/kb/article/redirect-domain-using-htaccess/
Here’s how you can edit the .htaccess
file using Rank Math:
https://rankmath.com/kb/edit-htaccess/
Please do take a backup before editing your .htaccess file.
Hope that helps and please don’t hesitate to let us know if you have any other questions.
Thank you.
Hi and thank you for the help.
We only want to redirect the home page in this instance. All the other pages go to other pages on the new site.
It looks like the method given on the page redirect all of the pages
How to Redirect an Entire Site to a Subfolder
In order to redirect your entire and for it to load from a subfolder, you should add the following rewrite rule to your .htaccess file:
Redirect 301 / http://domain.com/subfolder-name/
We just want the homepage only to redirect to a given page on the new site.
Can this be done?
Thanks again for the help.
Ian
Hello,
In this case, you can add the following rule to your .htaccess
to redirect only to your homepage:
RedirectMatch 301 ^/$ https://example.com
Make sure to change the https://example.com
with your actual destination URL.
Let us know how it goes. 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.