.htaccess WordPress – wp-config.php Protection

September 5, 2009 | Posted by Wolf

  • Share/Bookmark

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”

  1. Security Hack WordPress – wp-config.php Protection | on October 24th, 2010 7:00 am

    [...] 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 [...]

Got something to say?





JennCria Quality Directory

The best way to get your One Way link with only $1. All links are permanent! If you wish you can add up to 5 deeplinks with only $5 or, if you want the first page you can bid for position. Take a look at JennCria

Recommended Sites