Created
December 6, 2016 15:48
-
-
Save avandrevitor/76902d043ed653d3765b491521cfc076 to your computer and use it in GitHub Desktop.
Apache Mobile Redirect
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
# from http://snipplr.com/view/47652/simple-htaccess-mobile-redirect/ | |
RewriteEngine On | |
RewriteCond %{REQUEST_URI} !^/mobiledirectoryhere/.*$ | |
RewriteCond %{HTTP_USER_AGENT} "android|blackberry|ipad|iphone|ipod|iemobile|opera mobile|palmos|webos|googlebot-mobile" [NC] | |
RewriteRule ^(.*)$ /mobiledirectoryhere/ [L,R=302] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment