Hello,
Thank you for contacting Rank Math support.
Not sure why your robots.txt file is redirecting to your homepage but it is normal for you not to see any actual robots.txt file on your site’s root. This is because Rank Math does not create an actual robots.txt file in your site’s root – instead, it uses a virtual robots.txt file – which is better and is used by other major SEO plugins.
Regarding the redirection, please share access to your website so we can help investigate this issue properly. Please follow these steps:
- Edit the first post on this ticket and include your WordPress logins in the Sensitive Data section. This is a secure section that only our support staff can access.
- Make sure you take a complete backup of your website before sharing the information with us.
- If you prefer, you can use this plugin to generate a temporary login URL to your website and share that with us instead: https://wordpress.org/plugins/temporary-login-without-password/
- You can also use this plugin to monitor what changes our staff might make on your website (if any): https://wordpress.org/plugins/wp-security-audit-log/
We appreciate your cooperation and patience. Thank you for choosing Rank Math.
Thank you for choosing Rank Math
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
I added my credentials so you can investigate further.
Thanks!
Hello,
We can see your robots.txt file is properly loading in the /?robots=1
URL:

Since you’re using the Nginx server, please get in touch with your hosting provider and ask them to add the following rule to the server:
# START Nginx Rewrites for Rank Math Robots.txt File
rewrite ^/robots.txt$ /?robots=1 last;
rewrite ^/([^/]+?)-robots([0-9]+)?.txt$ /?robots=$1&robots_n=$2 last;
# END Nginx Rewrites for Rank Math Robots.txt File
Once done, please clear your website cache including any server-level cache, and check again.
Let us know how it goes. Looking forward to helping you.
Thank you.
Hi Rakibuzzaman,
Thanks for your reply. I forwarded your request to my hostingprovider and will get back to you as soon as I get an positive reply.
Hello,
Sure thing. Let us know if you need help with anything else
Regards
Hi,
My robot.txt file is now visible, thanks for the support!
Hello,
We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.
If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.
If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.
Thank you.