I've recently had to put some code into a different server and my .htaccess file fails miserably. I can stripe out all the parts I don't need but the thing is I'd like to have it on source-control (one file serves many scenarios).
Can we have fail-safe rules? I think I'm looking for an if else
clause here.
# IF THIS IS ALLOWED DO IT #
AuthType none
Satisfy any
# IF THIS IS ALLOWED DO IT #
DirectoryIndex index.htm index.php
AddHandler php5-script .php
Thank you.