CashDummy Regular Member Joined Oct 3, 2007 Messages 233 Reaction score 106 Feb 17, 2017 #1 Is there a code I can use to send people who go to my site using a mobile device to a different link?
Is there a code I can use to send people who go to my site using a mobile device to a different link?
chillerfx Regular Member Joined Mar 20, 2012 Messages 432 Reaction score 115 Feb 28, 2017 #2 In PHP, there is a class file called Mobile detect to find out either the device is mobile or not. I hope the following links help you. http://mobiledetect.net/ Using Jquery : http://stackoverflow.com/questions/3514784/what-is-the-best-way-to-detect-a-mobile-device-in-jquery
In PHP, there is a class file called Mobile detect to find out either the device is mobile or not. I hope the following links help you. http://mobiledetect.net/ Using Jquery : http://stackoverflow.com/questions/3514784/what-is-the-best-way-to-detect-a-mobile-device-in-jquery
Turkhero Newbie Joined Nov 30, 2016 Messages 21 Reaction score 3 Mar 2, 2017 #3 Mobiledetect.net is great
David Jones Regular Member Joined Jan 31, 2017 Messages 333 Reaction score 55 Mar 2, 2017 #4 you can use this Code: RewriteEngine On # Check for mime types commonly accepted by mobile devices RewriteCond %{HTTP_ACCEPT} "text\/vnd\.wap\.wml|application\/vnd\.wap\.xhtml\+xml" [NC] RewriteCond %{REQUEST_URI} ^/$ RewriteRule ^ http://m.domain.com%{REQUEST_URI} [R,L]
you can use this Code: RewriteEngine On # Check for mime types commonly accepted by mobile devices RewriteCond %{HTTP_ACCEPT} "text\/vnd\.wap\.wml|application\/vnd\.wap\.xhtml\+xml" [NC] RewriteCond %{REQUEST_URI} ^/$ RewriteRule ^ http://m.domain.com%{REQUEST_URI} [R,L]
E epagos Newbie Joined Apr 11, 2007 Messages 22 Reaction score 1 Mar 4, 2017 #5 I have used "mobile-detect.js", seems to work fine, You can find it on github.