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

#319162
  • Resolved metroc stores
    Rank Math free

    Hey iam Facing in this site where my site Wont Robert.txt as well it not able to verify in google webmaster tools of owenership.

    Where the main url is working fine but the subdomain of my sites is showing this error. Contents are locked because a robots.txt file is present in the root folder.

    I check root folder where it wont contains any robert.txt file.

    So please help me out to solve this issue.

    Thank you

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

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

    We might need to take a closer look at the settings. 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/

    We really look forward to helping you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    Upon visiting your admin page, I was greeted with an error saying: “Error establishing a database connection”.

    Could you please verify the situation before we debug the issue with regard to your robots.txt file?

    Also, please share your FTP login in the Sensitive Data section as well.

    Looking forward to helping you with this one.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    There was a physical file on the root of your website called robots.txt that was empty and thus causing this situation.

    Now that we have removed that you can edit the file with the help of Rank Math from WordPress Dashboard > Rank Math > General Settings > Edit robots.txt

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

    IF i have added the file normally using the above method which u have sent then its also not working.

    My ownership of site in Google Search console not gets verified.

    What i need to tell me ?

    Thanks.

    Hello,

    If I understand correctly, you want to verify your site with Google.

    If yes, then we have a detailed knowledge base article that you can follow for the same – https://rankmath.com/kb/google-site-verification/

    Please have a look at it and hope this helps.

    Looking forward to helping you.

    Thank you.

    Yeah Before verifying the ownership my site is not getting verified. After checking my Robots.txt file it shows this error. Contents are locked because a robots.txt file is present in the root folder.

    After that Robots.txt also wont get verified.

    What i need to ,how to solve this issue.

    Thanks

    Hello,

    This error occurs if there’s a physical robots.txt file present in the root folder of your website like my colleague mentioned above.

    Here’s a link for more information:
    https://rankmath.com/kb/cant-edit-robots-txt/#common-reasons-your-sites-robots-txt-cant-be-edited

    Please check your website’s root folder for that file and delete it so Rank Math can generate the robots.txt on your site.

    I hope that helps.

    Thank you.

    As u told me i checked in my Root Folder where i wont find anything related to robot.txt file.

    So Lemme know how to solve this isssue.

    Thanks

    Hello,

    Can you please share your FTP login information in the Sensitive Data section so we can further debug the issue?

    Looking forward to helping you with this one.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    My Main issue is My Ownership is not able to verify in Google Search Console.

    When iam going to verify the Webmaster ownership its shows me this error.

    Could not find your site. Please check that you provided the correct URL for your property.

    i have added the Correct URL But also not able to Verify the Ownership URl in Search console.

    Please lemme know how to solve this issue .

    Azib Yaqoob
    Rank Math business

    Hello,

    You can follow this guide to connect Rank Math to your Google account:
    https://rankmath.com/kb/connect-your-google-account/

    If you haven’t already created and verified your website property in the Google Search console, then Rank Math would get this done for you automatically, and you should be able to see your website listed under the Site drop-down list in the Search Console section.

    I hope this helps. Looking 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 14 replies - 1 through 14 (of 14 total)

The ticket ‘Contents are locked because a robots.txt file is present in the root folder.’ is closed to new replies.