Edit robots.txt & .htaccess file is not writable

  • Hello All!

    How can i fix this problem!

    My robots.txt & .htaccess file is not writable!

    I am waiting for your instructions.


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

    Thank you for contacting Rank Math today.

    Please get in touch with your host so that they can help in changing the permissions for the files on your root folder.
    It is also recommended to rename the robots.txt file that is present on your root folder so that Rank Math can generate a virtual robots file.

    Looking forward to helping you. Thank you.



    Here is my robot file https://imgur.com/ydRHxdN

    here is permissions https://imgur.com/45kWozw

    I have filezilla so i can change what you want.

    Can you guide me please?


    Hi Firat,

    You just need to delete the file. You don’t need to change the permission on the robots.txt.

    You only need to change the permission on the .htaccess file. Please set it as 644 and if that doesn’t work, you can try 755.

    Let us know how it goes.

    Hello, I have the same problem, I deleted the robots.txt and set the .htaccess to 644 or 755, without success. what else could it be?

    • This reply was modified 6 days, 2 hours ago by Sakis-tech.

    Hello Todd thank you for your help..

    Not worked for both suggestion that you have made ..

    There is still same problem.

    I solved the problem.

    I changed the following value in wp-config.php:


    define ('DISALLOW_FILE_EDIT', true);


    define ('DISALLOW_FILE_EDIT', false);

    may be helpful for other users.

    Hello @Sakis-tech,

    I have no related part of my wp-config file. Thanks

    Hello Todd, can you help me please,



    add this at the top of your wp-config.php

    define ('DISALLOW_FILE_EDIT', false);

    • This reply was modified 4 days, 20 hours ago by Sakis-tech.
    • This reply was modified 4 days, 6 hours ago by Sakis-tech.

    Hi Fom,

    Did the solution Sakis offered not help? Moreover, it seems like you have firewall enabled on your server which might prevent files from getting overwritten by Rank Math.

    With that said, you can make changes directly in those files if you can’t make the changes via Rank Math. It will attain the same result.

    Sakis, I am glad you found the solution to this issue.

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

You must be logged in to reply to this ticket.