Robots.txt is not writable

#290783
  • Resolved Quality Guide
    Rank Math free

    Hello,

    I received a notification about robots.txt from google so when I try to solve it then I saw that my .htaccess and robots.txt folder is not writable.

    i tried everything such as changing the name but when I search the robots.txt folder in Cpanel first of all the name is changed class-robots.txt instead of robots.txt the second thing is when I changed the name of the folder to Old-robots.txt the option disappear from the rank math .

    i am afraid to do changes to any of my folders because the website is getting traffic and i don’t want to do something which can cause any issue to the website.

    please help me in this situation.

    Note: I used itheme security plugin before that’s why my all permission was changed but now its writable and also i am not using that plugin. The current plugin which I am using for security is wordfence.

    please see the attachment and guide me accordingly.

    cpanel rank math robots.txt folder name is changed.
    https://ibb.co/4Yz6JHQ

    .HTACESS error in rank math
    https://ibb.co/b6vwxXH
    robots.txt permission in cpanel.
    https://ibb.co/BjQMJFW
    robots.txt error in rank math
    https://ibb.co/LxRdmhX
    .htacess perission in cpanel
    https://ibb.co/jD16KTt

    waiting for reply.

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

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.

    The robots.txt that we detect is located on your website’s root directory and not within Rank Math’s files. The root directory is where you’ll find the folders wp-admin, wp-content, etc.

    If you have a static robots.txt file in your website’s root directory, Rank Math would not be able to generate it since we create it virtually. Here’s a link for more information:
    https://rankmath.com/kb/cant-edit-robots-txt/

    For the error robots.txt file is not writable, please check your wp-config.php file for this line and set it to false:

    define ('DISALLOW_FILE_EDIT', true);

    If it’s not there, please add this line in that file:

    define ('DISALLOW_FILE_EDIT', false);

    I hope that helps.

    Thank you.

    Quality Guide
    Rank Math free

    Thanks, Mate,

    Really appreciated now robots.txt is writable and the error is gone also .htaccess error is gone.

    Can I now click on validate issue in the google search console because my error is solved and yeah please see the attachment?

    my .htaccess error is gone and i have seen the confirmation about .htaccess file is updated.

    My question is do i have to do anything else or its done and my .htaccess is updated?

    https://ibb.co/6NzgsNM

    Hello,

    Yes, please try validating the error on your Google Search Console account and give Google some time to validate it.

    If the issue still persists, could you please share your website URL to check and verify? You can add it in the sensitive data section

    Sensitive Data Section

    It is completely secure, and only our support staff has access to that section.

    For your .htaccess file, since you have mentioned that it is already fixed, there’s no need to update it.

    Looking forward to helping you.

    Thank you.

    Quality Guide
    Rank Math free

    Hello,

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

    Thank you.

    Anas
    Rank Math business

    Hello,

    I checked the robots.txt, it is correct and loading fine.

    You can try validating the error on your Google Search Console.

    I hope this helps.

    Thank you.

    Quality Guide
    Rank Math free

    Thank you 🙂

    Azib Yaqoob
    Rank Math business

    Hello,

    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

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

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