Posted By

ohryan on 01/21/11


Tagged

redirect htaccess mobile


Versions (?)

Last Edited at 01/21/11 01:53pm

Viewed 10 times

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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.