View Single Post
Old 06-07-2011, 11:07 AM  
cybermike
Confirmed User
 
Join Date: Jan 2002
Location: Ny
Posts: 4,113
Need help with htaccess mobile and country redirect

Ok this is what I use to redirect mobile traffic

#redirect mobile browsers

RewriteCond %{HTTP_USER_AGENT} ^.*iphone|ipod|ipad|blackberry|android|sgh|sonyeri csson|psp|mot|htc|lg|nokia|palm|treo|j2me|webos|sm artphone|symbian.*$ [NC]
RewriteRule ^(.*)$ RewriteRule .* http://domain/mobile/ [R=302,L]

Now how do I keep my US/Canada traffic to going to http://domain.com/mobile and have the following countries go to http://domain.com/mobile2

Germany
France
Sweden
etc

I'm not having much luck messing around with php I rather do this in htaccess

Thanks
__________________
Hey surfers how about some The Best Porn Sites
cybermike is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote