As a webmaster, it's our duty to take care of our website. And security is our #1 priority when it comes to take care of a blog. As we know, there are millions of security issues with WordPress, which can be solved with some simple things, such as security plugins, configuring our .htaccess file, etc.
Today we'll secure our wp-config.php file with some basic .htaccess editing. Add following code to your .htaccess file:
This code should be placed in an .htaccess file located in the directory that contains your wp-config.php file.
Today we'll secure our wp-config.php file with some basic .htaccess editing. Add following code to your .htaccess file:
<files wp-config.php>
order allow,deny
deny from all
</files>
This code should be placed in an .htaccess file located in the directory that contains your wp-config.php file.