Jump to content
Redirect mobile devices via HTML5-4
Asked by nuribruner
Posted Nov 28 2011 07:11 PM
The Pear Podcast & Reviews
Nuri R. Bruner
Answered by Altharaz
Posted Jun 11 2012 08:02 PM
If you want definitely to redirect your visitors, you can use this code :
Source : http://localstreamer...-detect-all-mob
However, please put a button to allow people to go back to the normal version of your website.
You can also just use CSS3 features, and use this kind of code to use the stylesheet according to the device :
<link rel="stylesheet" href="screen.css" media="screen"/> <link rel="stylesheet" href="handheld.css" media="handheld"/>
Source : http://www.designyou...g-mobile-users/
I'd rather go for the second option, but it's up to you!
Answered by mhalverson
Posted Jun 14 2012 09:13 PM
I'm not sure how it works off the top of my head in this case, but some webservers (APACHE) for example, are able to redirect based on the headers sent.