-
How do I redirect for the home page? I have tried several times to create a redirect, but it doesn’t work. However if redirecting articles works.
-
Hello, we apologize for the issue you are facing with redirecting your home page. To set up a redirect for your home page using Rank Math, you can follow these steps:
-
Enable the Redirections Module: First, ensure that the Redirections module is activated in your Rank Math settings. You can do this by navigating to WordPress Dashboard → Rank Math SEO → Dashboard → Modules and enabling the Redirections module.

-
Access the Redirections Screen: Go to WordPress Dashboard → Rank Math SEO → Redirections.
-
Add a New Redirect: Click on the Add New button to create a new redirect rule.
- In the Source URL, enter the URL of your current home page (e.g.,
/or `https://bitly.com/). - In the Destination URL, enter the URL where you want to redirect your home page.
- Choose the type of redirection (usually 301 Permanent).

- In the Source URL, enter the URL of your current home page (e.g.,
-
Save Changes: After entering the details, make sure to save the changes.
If you have already tried these steps and it still doesn’t work, please check for any conflicting redirects or caching issues that might be affecting the redirection. You can also use the Redirection Debugger to diagnose any issues further.
If you continue to experience problems, please reply to this ticket, and a human agent from the Rank Math Support team will assist you further. Thank you for raising this concern!
Sources:
How to Set Up Redirections » Rank Math
How to Redirect Posts After Changing URLs » Rank Math
Solving Redirection Issues Using Rank Math SEO Plugin » Rank MathHello,
Please note that Rank Math cannot support that kind of redirection.
In this case, you may need to use .htaccess redirect to achieve that kind of redirection:
RedirectMatch 302 ^/$ https://yourwebsite.com/destination-slug/Please note that your .htaccess is a sensitive file. We recommend getting in touch with your web host before applying the code we shared.
Looking forward to helping you.
Can I use both the plugin and the .htaccess file to manage redirects? What is their priority? How does rankmath export redirection rules if I want to go to an .htaccess file?
So far I’ve redirected 17 posts using the rankmath plugin.
Hello,
You can use both the Rank Math plugin and
.htaccessto manage redirects, but keep in mind that.htaccessrules generally take priority over plugin-based redirects. Rank Math will handle redirects through WordPress, while.htaccessrules are processed server-side before WordPress loads.Hope that helps, and please do not hesitate to let us know if you need our assistance with anything else.
Thanks.
How to export redirection rules and apply them to .htaccess files?
Hello,
In the Free version, you need to add the redirections manually to your server configuration file. If you upgrade to the PRO plugin you get access to an option to do that with a single click as mentioned in our documentation here: https://rankmath.com/kb/setting-up-redirections/#backing-up-your-redirects
Don’t hesitate to get in touch if you have any other questions.
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.
-
The ticket ‘How do I redirect for the home page?’ is closed to new replies.