how to fix

#252078
Viewing 7 replies - 1 through 7 (of 7 total)
  • Tammy
    Rank Math business

    Hello,

    Thank you for contacting Rank Math today, and we apologize for any inconvenience this may have caused.

    If you don’t have define( ‘DISALLOW_FILE_EDIT’, true ); in your wp-config.php file, please add this one

    define ('DISALLOW_FILE_EDIT', false);

    Check your root directory if the problem persists. There should be no robots.txt file on your website since Rank Math will construct a virtual robots.txt for you. Please rename or delete any that you find. To be rewritable, the.htaccess file should also be 644.

    I hope this information is helpful, and please do not hesitate to contact us if you require any additional support.

    Thank you.

    define (‘DISALLOW_FILE_EDIT’, false);
    If I add this line. Does my website have a security error?

    Hello,

    This line may be potentially high risk for your website as this will allow modifying the files of your website so most security plugins or any security software in your website suggests turning this to TRUE.

    https://www.icontrolwp.com/blog/more-wordpress-security-disallow-file-edit-setting-wordpress/

    You can enable this back once you edit the robots and htaccess files.

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Thank you
    So If not add: define (‘DISALLOW_FILE_EDIT’, false);
    This also does not affect the effectiveness of Rank Math SEO, right?

    Hello,

    Yes, you are correct. We only recommend implementing that line if Rank Math is unable to modify the .htaccess file on your website.

    I hope that helps.

    Thank you.

    cảm ơn bạn

    Tammy
    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)

You must be logged in to reply to this ticket.