6

Conditional include for .htaccess file

view full story
linux-howto

http://serverfault.com – is it possible to conditionally include another file in the htaccess file. When i work locally my apache settings are different from my remote server. Each time i pull in changes through git to the stage site (which shares the same settings as the live server) i have to apply a patch to my htaccess: diff --git a/.htaccess b/.htaccess index 4733ffa..1b39d24 100644 --- a/.htaccess +++ b/.htaccess @@ -2,6 +2,15 @@ # Apache/PHP/Drupal settings: # +############################################ +## uncomment these lines for CGI mode +## make sure to specify the correct cgi php binary file name (HowTos)