WordPress.org

Forums

The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

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

  1. andreas.h
    Member
    Posted 6 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

    Posted 6 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