Robots txt error

#599020
  • Resolved Anonymous
    Rank Math free

    My robots.txt is displaying “html is corrupt” under the txt when I checked it on google robots.txt tester.
    Do you have any idea on how I can solve this ??… It was working fine ..before I noticed this in the morning ..I had edit it but the html error notice was still hanging somewhere again underneath when I checked robots.txt tester ..what could be the reason for that?..

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

    Thank you for contacting Rank Math support. We’re sorry to hear that you’re having trouble with your robots.txt file.

    To help us understand this issue, please send us the URL to your robots.txt file, which should look something like this: https://example.com/robots.txt. Please also send us a screenshot of the error message that you see when you test your robots.txt file on Google’s robots.txt tester. This will help us diagnose the problem and provide you with a solution.

    Thank you for your cooperation.

    Anonymous
    Rank Math free

    https://www.nlvibes.com/robots.txt

    Screenshot link >> https://files.fm/u/5mxxk7zv4

    When I checked in google robot.txt tester it gave me that “html is corrupt” message at the bottom..

    Hello,

    We can see that your robots.txt file is loading fine here without the invalid html is corrupted line: https://www.nlvibes.com/?robots=1

    So, assuming this is a caching issue. Please try clearing your site, plugin, or any server-level cache to see if that works for you.

    If the issue still persists, please edit your robots.txt file and include the same rules without the <!-- html is corrupted --> line.

    Let us know how this goes.

    Thank you.

    Anonymous
    Rank Math free

    Thanks ..it’s working well now ..what I did was that ..I rolled back the version of my rank math and cleared cache ..and after that, it worked fine..

    Hello,

    We are glad that your issue has been sorted out by rolling back the version.

    Thank you so much for sharing your input.

    Please do not hesitate to let us know if you need our assistance with anything else.

    Anonymous
    Rank Math free

    how to resolve it. Im in this case

    Hello @vincentle2,

    Thank you for contacting Rank Math support.

    Can you please share a screenshot of your robots.txt file with us? You can share images with us by uploading them to an image hosting site like Imgur, and then sharing the generated URL with us here.

    Thank you for your patience and cooperation

    Anonymous
    Rank Math free

    It seems like there’s a hiccup with your robots.txt file, showing an “html is corrupt” message on the Google robots.txt tester. To troubleshoot, double-check that your robots.txt is in plain text format without any HTML code. Look out for syntax errors or typos that might have been introduced during recent edits. If the issue persists, consider going back to a version that worked fine before the problem arose. Also, investigate your web server configuration to ensure it’s not adding unintended HTML content to the file. I had a similar issue with one of my client’s websites. I followed these steps, and the problem got resolved. Here is that client site https://thecarromapk.com/

    Hello @jhonl-2,

    Thank you for your suggestions, we appreciate the contribution.

    That said, we’ll be closing this ticket now, but if you still need help with anything else – you can always open a new ticket and we’ll be happy to help.

    Thank you for choosing Rank Math

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

The ticket ‘Robots txt error’ is closed to new replies.