View Single Post
Old 06-08-2012, 09:44 AM  
Ross
Ik ben een aap
 
Industry Role:
Join Date: Sep 2002
Location: Traffic Force Towers, Canada!
Posts: 18,874
Quote:
Originally Posted by MikeFold View Post
here is one i use:

Code:
#HTACCESS MOBILE SITE REDIRECTION CODE
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} (opera\ mini|ipod|iphone|up\.browser|up.link|mmp|symbian|smartphone|midp|wap|vodafone|o2|pocket|kindle|mobile|pda|psp|treo|nokia|blackberry|android) [NC]
RewriteCond %{HTTP_HOST} !^m.whatever.com
RewriteRule ^(.*)$ http://m.whatever.com/ [L,R=302]
from this source:
Source
This is what we use too.
Ross is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote