
: Mobile redirect strategy Looking for help on deciding how to redirect users to a mobile optimized version of my site (m.mysite.com). Looking at two methods: Server configuration (.htaccess or
Looking for help on deciding how to redirect users to a mobile optimized version of my site (m.mysite.com).
Looking at two methods:
Server configuration (.htaccess or even varnish)
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"?
More posts by @Nimeshi995
2 Comments
Sorted by latest first Latest Oldest Best
The only alternative to using a cookie is having your portal (index) redirect to m.mywebsite.com with the implicit understanding that m.mywebsite.com will never link to the plain pages at mywebsite.com.
Also take a look here: csswizardry.com/2010/01/iphone-css-tips-for-building-iphone-websites/
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2025 All Rights reserved.