How to Edit robots.txt in Rank Math

Editing your robots.txt file in Rank Math is straightforward. Follow these steps:

  1. Access Rank Math:
    • Go to your WordPress Dashboard.
    • Navigate to Rank Math SEO -> General Settings.
  2. Enable Advanced Mode:
    • If you haven’t already, make sure Advanced Mode is enabled in Rank Math. You can find this toggle at the top right of the General Settings page.
  3. Edit Robots.txt:
    • In General Settings, scroll down and click on Edit robots.txt.
    • This will open the robots.txt editor where you can make changes to the file.

Important Considerations:

  • Existing robots.txt: If you have an actual robots.txt file in your website’s root directory, Rank Math may not be able to edit it directly. In this case, you’ll need to remove the existing file via FTP or cPanel File Manager.
  • Writability Issues: If you see an error message saying the robots.txt file is not writable, you may need to adjust file permissions or add a code snippet to your site (see the Rank Math knowledge base for details).
Leave a Reply

Your email address will not be published. Required fields are marked *