Hello, we apologize for the issue you are facing with the missing robots.txt option in the general settings of Rank Math. If the Edit robots.txt option is not displayed, it could be due to a few reasons:
-
Advanced Mode: Ensure that you have indeed enabled Advanced Mode. You can do this by navigating to WordPress Dashboard → Rank Math SEO and enabling Advanced Mode.

-
Actual robots.txt File: If there is an actual robots.txt file present on your server, any changes made in Rank Math will not take effect. In this case, you would need to delete the actual robots.txt file from your server to allow Rank Math to manage it.
-
Plugin Conflicts: Sometimes, other plugins may conflict with Rank Math. Try deactivating other plugins temporarily to see if that resolves the issue.
If you have checked these points and the option is still missing, please reply to this ticket with your site URL, and a human agent from the Rank Math Support team will assist you further.
Sources:
Common robots.txt Issues & How to Fix Them » Rank Math
Rank Math’s Advanced Mode – Available Module, Options & More
Advanced Tab in Rank Math SEO’s Meta Box
This is an automated reply from Rank Math Support Bot. Your ticket has been assigned to a human agent and we will get back to you shortly.
We’re facing the same issue.
The field is there, but it’s being hidden with CSS:
general-options.css:5
#robots_txt_content {
display: none !important;
}
Hello,
If the robots.txt setting is not showing, please add this filter on your site:
/**
* Allow editing the robots.txt & htaccess data.
*
* @param bool Can edit the robots & htacess data.
*/
add_filter( 'rank_math/can_edit_file', '__return_true' );
Here’s a guide on how you can add a filter:
https://rankmath.com/kb/wordpress-hooks-actions-filters/
Also, ensure that your user has administrator-level access, since it only shows to site admins.
Looking forward to helping you.