Next Question

Mahalo is adding a tip to all questions that don't offer a tip.
M¢25 Funded By Mahalo ? |
July 07, 2009 11:58 AM
RSS
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
Source(s):
http://mobiforge.com/developing/story/lightweight-device-detection-php
http://www.w3schools.com/CSS/css_mediatypes.asp
Permalink | Report
Answered Question

Mahalo is adding a tip to all questions that don't offer a tip.
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.
Interesting Question?
Yes (0)
No (0)
RSS
Best Answer Decided by Votes
| July 16, 2009 12:51 AM |
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
Permalink | Report
Voted as best: wdawe
Answer this Question
Related Questions
Ask a Question
Buy Mahalo Dollars with Credit Card or PayPal
Top Members
Most Popular Tags
Categories
- Anonymous
- Arts & Design
- Beauty & Style
- Books & Authors
- Business
- Cars & Transportation
- Consumer Electronics
- Coupons Deals
- Education
- Entertainment
- Environment
- Fitness
- Food & Drink
- From Email
- From Iphone
- From Twitter
- Health
- History
- Hobbies
- Home & Garden
- How Tos
- Humor
- Jobs
- Legal
- Local
- Love & Relationships
- Mahalo Answers Community
- Money
- Music
- News
- NSFW
- Parenting
- Pets
- Science & Mathematics
- Services
- Shopping
- Social Science
- Society & Culture
- Sports
- Technology & Internet
- Travel
- Video Games
Welcome New Members
- rajlee, December 06, 2009 10:58 AM
- douglasleeokia, December 06, 2009 10:41 AM
- gabigjokaj, December 06, 2009 10:36 AM
- aprilmaegarcian..., December 06, 2009 10:10 AM
- isya1999, December 06, 2009 10:04 AM
Mahalo Dollars are the currency of Mahalo Answers.
Each Mahalo Dollar costs $1.
Once you earn more than 40 Mahalo Dollars, you can request to be paid via PayPal. Each Mahalo Dollar is currently worth $0.75 when paid out via PayPal. Learn More