Skip to content Skip to sidebar Skip to footer

User Agent For Mobile Application Htaccess File

I have done a jquery mobile application. Now i want to run the url in mobile device only and desktop device are shoeing false. After a long time i am trying the htaccess file in a

Solution 1:

Try with those lines:

RewriteCond %{HTTP_USER_AGENT} "android|blackberry|ipad|iphone|ipod|iemobile|opera mobile|palmos|webos|googlebot-mobile" [NC]
RewriteRule ^(.*)$ http://www.othersite.com [L,R=302]

Post a Comment for "User Agent For Mobile Application Htaccess File"