robots.txt

#826840
  • Resolved Chris
    Rank Math free

    Hi, I have follow the steps on your post to allow rank math edit the robots.txt
    but I still have the message “Le fichier robots.txt n’est pas accessible en écriture.”

    I have add to my wpconfig :
    /**
    * Allow editing the robots.txt & htaccess data.
    *
    * @param bool Can edit the robots & htacess data.
    */

    add_filter( ‘rank_math/can_edit_file’, ‘__return_true’ );
    But it change nothing.

    what must I do ?

    thanks for your help

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

    I’m sorry to hear that you are still facing the issue with editing your robots.txt file even after following the steps provided.

    To address the message "Le fichier robots.txt n’est pas accessible en écriture," you have correctly added the necessary code to your wp-config.php file. However, if this change did not resolve the issue, there might be another reason causing the problem.

    One common reason could be the presence of a plugin like Really Simple SSL that disables the built-in editors for security reasons. In this case, you may need to update the plugin settings to enable Rank Math to edit the robots.txt file.

    Here’s what you can do:

    1. Check if you have a plugin like Really Simple SSL installed on your website.
    2. If so, navigate to the plugin settings (Settings → Hardening) and ensure that the option "Disable the built-in file editors" is turned off.
    3. After making this change, try editing the robots.txt file again through Rank Math.

    If you have any further questions or encounter any difficulties, please feel free to reach out to our support team for assistance. They are available 24/7 and will help you as soon as possible.

    Thank you for your patience and understanding.

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

    Chris
    Rank Math free

    Ok, AI gave me the solution. thanks !

    Hello,

    Glad that helped.

    If you have any other concerns, please don’t hesitate to contact us anytime to assist you further.

    Looking forward to helping you.

    Thank you.

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

The ticket ‘robots.txt’ is closed to new replies.