How can I configure the .htaccess of a sub-directory so that it COMPLETELY ignores the .htaccess of any parent directories?
Not just any rewrite rules, but EVERYTHING.
htaccess file are applied to the directory in which the . htaccess file is found, and to all subdirectories thereof. However, it is important to also remember that there may have been . htaccess files in directories higher up.
Although the file is hidden, the . htaccess file location is most commonly found in your website's public_html folder.
htaccess rewrite rules can be used to direct requests for one subdirectory to a different location, such as an alternative subdirectory or even the domain root. In this example, requests to http://mydomain.com/folder1/ will be automatically redirected to http://mydomain.com/folder2/.
I can't put a comment
but will using this will work:
in your folder create a .htaccess and put this code:
RewriteEngine off
or
in your main .htaccess file you can use:
RewriteCond %{REQUEST_URI} !^/folder/?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With