Tag: wp-config.php

How to Protect wp-config.php with .htaccess

Adding below snippet into your .htaccess file will prevent access to your wp-config.php file:

<Files wp-config.php>
 Order Allow,Deny
 Deny from all
</Files>