Page 1 of 1

Use htaccess To Protect The wp-config file

PostPosted: Thu Jan 24, 2013 8:07 am
by vineethc
As we all know in Wordpress,wp-config file is an important file which contains information about database name,database username,password and so on.So protecting the wp-config file is critical and could be done using the htaccess file.

For this simply add the following code in the htaccess file :
1. <files wp-config.php>
2. order allow,deny
3. deny from all
4. </files>