answered question
0
Votes
Votes
1
Answer
Answer
M$0.25
What is the best way to redirect mobile devices to a mobile optimised website without using Javascript?
The BBC, Wordpress, Ebay, Amazon are all able to do this and still have a link at the bottom of the page to view the main site. How? Very new at this, thought I'd give mahalo a go.
|
Report
answers (1)
You would probably want something on the backend that parses the agent-string of the request from the browser to determine if they should be redirected. See http://mobiforge.com/developing/story/lightweight-device-detection-php for an example.
I guess the next best thing would be to add a link at the very top of your page that will redirect to the mobile version. You can hide the link for your non-mobile visitors with a stylesheet targeting handheld devices using the media type rules of CSS: http://www.w3schools.com/CSS/css_mediatypes.asp
I guess the next best thing would be to add a link at the very top of your page that will redirect to the mobile version. You can hide the link for your non-mobile visitors with a stylesheet targeting handheld devices using the media type rules of CSS: http://www.w3schools.com/CSS/css_mediatypes.asp
source(s):
http://mobiforge.com/developing/story/lightweight-device-detection-php
http://www.w3schools.com/CSS/css_mediatypes.asp
http://mobiforge.com/developing/story/lightweight-device-detection-php
http://www.w3schools.com/CSS/css_mediatypes.asp
Voted as best: wdawe
Related questions
140 characters left












