Revision: 36626
Updated Code
at November 24, 2010 06:08 by nathansearles
Updated Code
#redirect mobile browsers RewriteCond %{HTTP_USER_AGENT} ^.*iPhone.*$ RewriteRule ^(.*)$ http://m.example.com [R=301] RewriteCond %{HTTP_USER_AGENT} ^.*iPad.*$ RewriteRule ^(.*)$ http://m.example.com [R=301] RewriteCond %{HTTP_USER_AGENT} ^.*Android.*$ RewriteRule ^(.*)$ http://m.example.com [R=301] RewriteCond %{HTTP_USER_AGENT} ^.*BlackBerry.*$ RewriteRule ^(.*)$ http://blackberry.example.com [R=301] RewriteCond %{HTTP_USER_AGENT} ^.*IEMobile.*$ RewriteRule ^(.*)$ http://ie.example.com [R=301]
Revision: 36625
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at November 24, 2010 06:06 by nathansearles
Initial Code
#redirect mobile browsers RewriteCond %{HTTP_USER_AGENT} ^.*iPhone.*$ RewriteRule ^(.*)$ http://m.example.com [R=301] RewriteCond %{HTTP_USER_AGENT} ^.*iPad.*$ RewriteRule ^(.*)$ http://m.example.com [R=301] RewriteCond %{HTTP_USER_AGENT} ^.*Android.*$ RewriteRule ^(.*)$ http://m.example.com [R=301] RewriteCond %{HTTP_USER_AGENT} ^.*BlackBerry.*$ RewriteRule ^(.*)$ http://blackberry.example.com [R=301]
Initial URL
Initial Description
Initial Title
htaccess mobile redirect
Initial Tags
redirect, htaccess, mobile
Initial Language
Apache