I'm trying to disallow access to two files via htaccess.
1. configuration.php
2. php.ini
I've seen how most would use something like the following:
<Files configuration.php>
Order Deny,Allow
Deny from all
</Files>
<Files php.ini>
Order Deny,Allow
Deny from all
</Files>
Would it be just as good to use RewriteRule?
For example:
RewriteRule ^(configuration\.php|php\.ini)$ - [F]
I appreciate any suggestions.