Since order allow,deny
is deprecated in 2.4 I wanted to rewrite the rules in my .htaccess file to use the new rules. Previously I was using:
<files wp-config.php>
order allow,deny
deny from all
</files>
Which I've rewritten to:
<FilesMatch "wp-config.php">
Require all denied
</FilesMatch>
How do I confirm that my method is actually working? I'm not certain how hackers might gain access to this file so I don't know how to test it.
Allow and Order
was written by someone else before I started working here. All I know is that hackers are able to (somehow) gain access to an unprotected file. I've tried researching how they do it, but I'm coming up with nothing.