robots.txt error

#387151
  • Resolved Sangjin Byun
    Rank Math free

    To register for website webmaster tools

    I’m trying to insert the text below into my robots.txt.

    #DaumWebMasterTool:768bd4377e24ab2810b7e177d82298f7c5e8195e40930d5a8e71dec1a90577bd:EVLX2Aazc6mITYyrqoi30w==

    By the way

    “Contents are locked because a robots.txt file is present in the root folder.”

    is displayed and cannot be edited.

    What should I do?

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

    Thank you for contacting Rank Math support, and sorry for any inconvenience that might have been caused due to that.

    Please login to your web server via FTP and delete the robots.txt file present in the root folder.

    It is the same folder where you have your wp-content, wp-admin
    etc.. folders.

    Once you delete the robots.txt file, Rank Math’s virtual robots.txt file will take over and you will be able to edit the robots.txt file without issues.

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Can I delete this file?

    However, this file was not in the wp-admin or wp-content folder.

    As soon as I logged in, I saw it right away.

    https://ibb.co/mzwZ6xs

    Hello,

    Yes, that is the static file.

    Since you already found the robots.txt file, you can simply edit that file and add the line you mentioned above.

    However, if you wanted Rank Math to generate your robots.txt virtually and make modifications in Rank Math > General Settings > Edit robots.txt, you may need to delete (or at least rename) that file.

    I hope that helps.

    Thank 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 ‘robots.txt error’ is closed to new replies.