Created
September 1, 2016 03:39
-
-
Save yudaprawira/45f508cfe83e12305825fb07e23b065a to your computer and use it in GitHub Desktop.
redirect mobile to www site using 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
RewriteEngine On | |
RewriteCond %{HTTP_HOST} ^m\. [NC] | |
#RewriteCond %{REQUEST_URI} !^/(media/) [NC] | |
RewriteCond %{HTTP_USER_AGENT} !(android|blackberry|googlebot-mobile|iemobile|iphone|ipod|opera\smobile|palmos|webos) [NC] | |
RewriteRule ^ http://www.juara.in%{REQUEST_URI} [L,R=302] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment