2 years, 10 months ago
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.
Separate topics with commas, or by pressing return. Use the delete or backspace key to edit or remove existing topics.
You can leave an optional "tip" with Mahalo's virtual currency, Mahalo Dollars. If you are asking a difficult question that might require some research, or if you'd like a wide variety of feedback, a higher tip often leads to more answers to your question.
M$1 Answer
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
You can leave an optional "tip" with Mahalo's virtual currency, Mahalo Dollars. If you are asking a difficult question that might require some research, or if you'd like a wide variety of feedback, a higher tip often leads to more answers to your question.
M$Report Abuse