Deny access to wp-config.php file
Order allow,deny. Allow from all. Satisfy any.
Protecting the WordPress wp-config.php file is another way to beef up your
I already added this code to my .htaccess files, to o deny access to wp-config: #
protect wpconfig.php
The old method works for me, and any requests result in a 403 status response instead of execution of the php script. I've not checked your 2nd ...
In your .htaccess add the following to prevent any access to the wp-config.php file
:
Only the first version works...
htaccess file.