Is there a way to override an htaccess file in a subdirectory? Been Googling for the past couple hours and turned up nothing useful.
I want to block some IP's & unwanted bots, but my 403 page is in a subdirectory, so I have to override the Deny's in it but Allow from all doesn't seem to undo the Deny's. Here's the code I've been trying:
/public_html/.htaccess
<Limit GET POST>
Order Allow, Deny
Allow from all
Deny from 111.13.8.*
</LIMIT>
<Files "/errors/">
Order Allow, Deny
Allow from all
</Files>
It returns a 500 error. Since the bot can't access the errors subdirectory's htacess file, this code would have to go here.