This really is kind of a follow-as much as It is possible to method to pressure apache to come back 404 rather than 403? which recommended
RedirectMatch to 404 to do this.
It really works perfectly acceptable for the majority of anything, if however I request:
I recieve a 403 and never a 404 basically have (or otherwise) this during my
RedirectMatch 404 ^/\.htaccess$
It is possible to method to override the default 403 - Forbidden behavior of apache from the
.htaccess file itself?
This needs to be achieved around the primary Apache configuration file or perhaps in your vhost, where use of .ht* files are came back with HTTP 403.
You can just change it out there without needing to do rewrite.
Soon after I published my question, I found an answer for the following:
- Mimic the default server configuration's
.htkind of files.
- Permit them.
- Redirect these to 404.
Works such as this:
<Files ~ "^\.ht"> Order Deny,Allow Allow from all Satisfy All Redirect 404 / </Files>