Mobile app version of vmapp.org
Login or Join
Nimeshi995

: 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

@Nimeshi995

Posted in: #Detection #Mobile #Server

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

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Nimeshi995

2 Comments

Sorted by latest first Latest Oldest Best

 

@Kevin317

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/

10% popularity Vote Up Vote Down


 

@Bryan171

I'd suggest that you use option #1 and set a cookie once they've been redirected. This will be effective in not just the current session of the user; but also future sessions.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme