iestynlloyd's Avatar
iestynlloyd 3
1 Asked
0 Answered
0 Best
0
No one has voted on this question yet :(
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.
Tip for best answer: M$0.25
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$

What is Your Answer?

0
0
0

1 Answer

0
kingkool68's Avatar
kingkool68 | 2 years, 10 months ago
4
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

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

Post Reply Cancel

Learn something new with our FREE educational apps!

Private lessons in the comfort of your own home. Get back in shape or finally pick up a guitar with our great experts guiding you the whole way!
Learn Guitar
Learn Hip Hop
Learn Pilates