I have a dev server and live server, both running my site on Apache. In my .htaccess file, in addition to lots of mod_rewrite commands and other important things, I also have Auth access control for the live server. (The dev server is on my local Mac, so I don't need it there...)
Right now it's hard to sync .htaccess up to the live server since I can't just copy my dev .htaccess file (that would overwrite the Auth commands), so I have to manually edit the live one.
Is there a way to have a conditional in the .htaccess file? I'm imagining something like:
<On Live_Server> AuthName "Restricted Area" AuthType Basic AuthUserFile /home/lmiv/.htpasswds/.htpasswd Require valid-user </on>