: Override .htaccess from parent directory I have a local LAMP stack (without the MySQL. LAP stack? Anyways..) and I am using this as a development environment for a production website. The site
I have a local LAMP stack (without the MySQL. LAP stack? Anyways..) and I am using this as a development environment for a production website. The site is placed in a sub-directory of the Apache2 document root and managed by Git.
My Issue is: I have a .htaccess file tracked in that subdir by Git for URL rewriting on the production server. On my local test site, these rewrite rules break almost everything (because the site is in a subdir, not the doc-root).
Is there any way to override/disable that .htaccess file without modifying anything in the subdir?
My doc root is /var/www/ with the site being hosted at /var/www/foo/.
More posts by @Shelton105
1 Comments
Sorted by latest first Latest Oldest Best
Your can add into httpd.conf container for <Directory>:
AllowOverride None
and affected .htaccess will be effectively ignored.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.