WordPress.org

Support

Support » How-To and Troubleshooting » Protect wp-config.php with the htaccess file details

Protect wp-config.php with the htaccess file details

  • Currently using this in my htaccess file to protect the wp-config file.

    <files wp-config.php>
    order allow,deny
    deny from all
    </files>

    Now, if I’ve installed wordpress in another directory, lets say /core, should that reflect in the code in the htaccess then, like:

    <files core/wp-config.php>
    order allow,deny
    deny from all
    </files>

    Make sense it should but just askning! 🙂

Viewing 1 replies (of 1 total)
  • If the htaccess file is in the root directory, yes that’s correct, else if the htaccess file is the same directory(as WordPress), it should remain the same.

Viewing 1 replies (of 1 total)
  • The topic ‘Protect wp-config.php with the htaccess file details’ is closed to new replies.