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.

    Thanks!

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.

    ​​​​​​

    Hello,

    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?

    Thanks

    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 3 months, 1 week 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:

    from

    define ('DISALLOW_FILE_EDIT', true);

    in

    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,

    Thanks,

    hello

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

    define ('DISALLOW_FILE_EDIT', false);

    • This reply was modified 3 months, 1 week ago by Sakis-tech.
    • This reply was modified 3 months, 1 week 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.

    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 10 replies - 1 through 10 (of 10 total)

The ticket ‘Edit robots.txt & .htaccess file is not writable’ is closed to new replies.