WordPress.org

Ready to get started?Download WordPress

Forums

Protect wp-config.php with the htaccess file details (2 posts)

  1. andreas.h
    Member
    Posted 3 years ago #

    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! :)

  2. Mark / t31os
    Moderator
    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic