Mobile app version of vmapp.org
Login or Join
Shelton105

: 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

@Shelton105

Posted in: #Apache #Apache2 #Git #Htaccess #ModRewrite

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/.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Shelton105

1 Comments

Sorted by latest first Latest Oldest Best

 

@Berryessa370

Your can add into httpd.conf container for <Directory>:

AllowOverride None


and affected .htaccess will be effectively ignored.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme