Mobile redirect strategy

Posted by Kevin on Pro Webmasters See other posts from Pro Webmasters or by Kevin
Published on 2011-07-13T10:51:36Z Indexed on 2011/12/01 10:25 UTC
Read the original article Hit count: 513

Filed under:
|
|

Looking for help on deciding how to redirect users to a mobile optimized version of my site (m.mysite.com).

Looking at two methods:

  1. Server configuration (.htaccess or even varnish)
  2. Webapp (php)

The problem I see with #1 is with the "view full site" link on the mobile site. If a user clicks that link and they go to mysite.com won't the server just redirect them back to m.mysite.com?

For #2 I could create a cookie that is checked in addition to the user agent.

Any suggestions/comments? Is there a better way to "remember" if the user clicked "visit full site"?

Thanks,

Kevin

© Pro Webmasters or respective owner

Related posts about server

Related posts about mobile