.htaccess WordPress – wp-config.php Protection
September 5, 2009 | Posted by Wolf |
You can exclude external access to your WordPress wp-config.php file via the .htaccess file.
You have to modify one file:
/.htaccess
Preface
You are going to modify the .htaccess file, stored in the same directory of your WordPress wp-config.php file!
1. Backup
so, first of all, backup it and don’t forget to check what you did!
2. Modify .htaccess
You have to add four lines in your /.htaccess file. Below you can see the lines to add:
…
<files wp-config.php>
Order deny,allow
deny from all
</files>
….
That’s all!
Comments
One Response to “.htaccess WordPress – wp-config.php Protection”
Got something to say?
[...] ISP does not allow you to store files to a higher level than your WordPress root directory? Read .htaccess WordPress – wp-config.php Protection to get the [...]