Created
May 15, 2011 14:18
-
-
Save matthewpennell/973194 to your computer and use it in GitHub Desktop.
Regular expressions in .htaccess
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set browser and version environment variables based on the visitor's browser | |
SetEnvIfNoCase User-Agent (Opera|Chrome|Version|Firefox|MSIE)[\/|\s](\d+)\. browser=$1 version=$2 | |
SetEnvIf browser Version browser=Safari | |
SetEnvIf browser MSIE browser=IE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment