my Robots.txt file is NOT writable

#949650
  • Resolved Irina Kainz
    Rank Math free

    Hello,

    I am a Premium subscriber for the RankMath plugin on my WordPress site. However, in the settings—Edit robots.txt—I get the message that robots.txt is not writable.
    Why is this happening? What can I do to correct it? I have a membership site, and I need to make corrections in Allow and Disallow.
    Also, I have problems with crawling my website pages and posts.
    Do you have a video tutorial for detailed configurations of the Business package of your plugin?
    Please provide me with a link.

    Otherwise, please assist. After I installed the RankMath Business package, I see no improvement so far. My website has a very bad ranking. Please recommend how I can improve the configurations of the RankMath SEO on my website.

    thank you in advance for your reply and assistance.

Viewing 1 replies (of 1 total)
  • Hello,

    We apologize for the issue you are facing with your robots.txt file being not writable. This error typically occurs when Rank Math cannot modify your robots.txt file due to certain restrictions. Here are some common reasons and solutions:

    1. Presence of a Physical File

    If there is a physical robots.txt file in the root folder of your website, it can prevent Rank Math from editing it. You can remove this file via FTP or cPanel File Manager and then try to edit the robots.txt file through Rank Math.

    Robots.txt file in root folder

    2. Permission Issues

    If there are permission issues on your web server, you may need to contact your web host for assistance.

    3. wp-config.php Settings

    You may also need to check your wp-config.php file for the following line:

    define ('DISALLOW_FILE_EDIT', true);

    If it exists, change it to:

    define ('DISALLOW_FILE_EDIT', false);

    If it does not exist, you can add it as shown above. This will allow Rank Math to edit the robots.txt file.

    4. Adding a Filter

    To enable editing, you can add the following filter to your site:

    /**
     * Allow editing the robots.txt & htaccess data.
     *
     * @param bool Can edit the robots & htacess data.
     */
    add_filter( 'rank_math/can_edit_file', '__return_true' );

    You can refer to this guide on adding filters to your site.

    Crawling Issues

    Regarding the crawling issues with your website pages and posts, it’s essential to ensure that your robots.txt file is correctly configured to allow search engines to crawl your content. Once you resolve the writable issue, you can adjust the Allow and Disallow rules as needed.

    Video Tutorial

    Unfortunately, I don’t have a specific video tutorial link for the Business package configurations at this moment. However, you can find various resources and guides on our knowledgebase that may help you with configurations.

    Improving SEO Configurations

    To improve your website’s ranking, consider the following tips:

    • Ensure all your pages have unique and optimized titles and meta descriptions.
    • Use relevant keywords throughout your content without keyword stuffing.
    • Optimize images with alt text and proper file names.
    • Regularly update your content and ensure it provides value to users.
    • Utilize internal linking to connect related content on your site.
    • Monitor your website’s performance using tools like Google Search Console.

    If you still have questions or need further assistance, please feel free to reply to this ticket, and a human agent from our support team will assist you further.

    Thank you for raising this concern!

    Sources:
    I Can’t Edit My Website’s Robots.txt » Rank Math
    Common robots.txt Issues & How to Fix Them » Rank Math

    This is an automated reply from Rank Math Support Bot. If you need further assistance, please reply to this topic and a human support agent will reply to you shortly.

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

The ticket ‘my Robots.txt file is NOT writable’ is closed to new replies.