Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
06-18-2012, 07:28 PM #1
Apache IfDefine conditionals in .htaccess
my dev setup: Mac OSX 10.7.4 / Apache 2.2.21 / PHP 5.3.10
i wish to add conditional logic to my .htaccess files depending on dev vs live environment. for example i want to have authentication on the live server but not on the dev server. i have in my httpd.conf...
SetEnv DEV 1
<IfDefine !DEV> AuthType Basic AuthName "password protected" AuthUserFile /path/to/.htpasswd Require valid-user </IfDefine>