Ask questions via twitter! Message any question to @answers on twitter. We'll publish the question and send you a reply each time there's a new answer.
Next Question

Answered Question

 
 M¢25  Funded By Mahalo ? |  July 07, 2009 11:58 AM

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
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



Tags: php, css, handheld, backend

Helpful Answer?  (0)   (0)    Tip kingkool68 for this answer
Permalink | Report
Voted as best: wdawe
   Reply  
 
 

Answer this Question

How tips and payments work

This question has already been resolved. You may add an answer to it but you will not be eligible to win best answer or any associated tips.

Ask a Question


140 characters left
Top of Page
Buy Mahalo Dollars with Credit Card or PayPal

Top Members

This Week All Time
  • cfinke
    cfinke
    2nd Degree Black Belt
    26536 Points
    M$29.75 Earned
  • opher
    opher
    Purple Belt with a Brown Tip
    5371 Points
    M$215.59 Earned
  • thisjustme
    thisjustme
    Green Belt
    1143 Points
    M$76.05 Earned
   See All
 

Most Popular Tags

mahalo(1729)
music(492)
iphone(479)
google(376)
food(332)
online(330)
beer(282)
money(278)
movies(275)
apple(256)
aotd(235)
health(226)
video(219)
free(219)
dog(209)
   See All
 

Categories

Welcome New Members


 
 
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

 
 

Please log in to use this function.