Posted By

ohryan on 01/21/11


Tagged

redirect htaccess mobile


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

benediktvaldez
raz
Priestd09


Simple .htaccess Mobile Redirect


 / Published in: Apache
 

  1. RewriteCond %{REQUEST_URI} !^/mobiledirectoryhere/.*$
  2. RewriteCond %{HTTP_USER_AGENT} "android|blackberry|ipad|iphone|ipod|iemobile|opera mobile|palmos|webos|googlebot-mobile" [NC]
  3. RewriteRule ^(.*)$ /mobiledirectoryhere/ [L,R=302]

Report this snippet  

You need to login to post a comment.