Disable robots txt and .htaccess

#20069
  • Resolved Steve
    Rank Math free

    Is there a way to disable access to the robots.txt and .htaccess from within the plugin?

    We perfer not to allow access to these files for security purposes and the current seo plugin we are using, which also includes this, was able to provide the ability to disable access to these files through their plugin.

    Thanks.

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting Rank Math today.

    You can add the following constant to your wp-config.php file on the root of your website to make these files not writable:
    define( 'DISALLOW_FILE_EDIT', true );

    Looking forward to helping you. Thank you.

    ​​​​​​

    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 ‘Disable robots txt and .htaccess’ is closed to new replies.