Cannot edit robots.txt in Rankmath

#672639
  • Resolved Anonymous
    Rank Math free

    I cannot edit robots.txt in Rankmath. No matter what I do it just says Contents are locked because a robots.txt file is present in the root folder. with or without a robots.txt file in the root.

    The rankmath editor always displays:
    User-agent: *
    Crawl-delay: 2

    If I have a robots.txt in root, rankmath will still simply show the above. The AI chat bot gave me a WordPress filter, rewrite_rule and wp-config snippet to add. Added all and nothing has changed, still getting Contents are locked because a robots.txt file is present in the root folder. with or without a robots.txt in root folder.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    Thank you for your query and we are so sorry about the trouble this must have caused.

    We explain in this tutorial how you can fix this issue to allow you to edit the file using our plugin: https://rankmath.com/kb/cant-edit-robots-txt/#num-1-presence-of-a-physical-file

    Essentially, you will need to remove the physical file from the root of your domain using cPanel file manager or FTP access.

    Don’t hesitate to get in touch if you have any other questions.

    Thank you.

    Anonymous
    Rank Math free

    Hi,

    There is no robots.txt file in the root.

    Thanks

    Hello,

    Can you please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section?

    Please do take a complete backup of your website before sharing the information with us.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below 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 use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):
    https://wordpress.org/plugins/wp-security-audit-log/

    Please do take a complete backup of your website before sharing the information with us.

    We really look forward to helping 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.

Viewing 3 replies - 1 through 3 (of 3 total)

The ticket ‘Cannot edit robots.txt in Rankmath’ is closed to new replies.