Mobile app version of vmapp.org
Login or Join
Dunderdale272

: Mobile site: Should I be redirecting to a different subdomain, or just serving mobile-specific markup? I'm currently putting together a mobile version of an existing site (Django-based) and there

@Dunderdale272

Posted in: #Mobile

I'm currently putting together a mobile version of an existing site (Django-based) and there seems to be two ways of doing this. I can do one of two things:


Detect a mobile useragent and redirect the user from www.example.com/page/awesome/ to m.example.com/page/awesome/, which serves up mobile-specific markup, CSS etc.
Just detect the useragent and serve up different content on the www subdomain depending on whether the useragent is mobile or not.


To me, (2) feels cleaner, because the site's adapting content served based on the client, but without changing the URL. However, (1) seems to be a lot more prevalent on various popular internet sites, and there must be some good reasoning behind it.

Obviously, (1)'s easier to test, but redirection just feels messy, as well as doubling the number of URLs.

What's the "right" way to do this, and what other pros/cons should I be looking at?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Dunderdale272

2 Comments

Sorted by latest first Latest Oldest Best

 

@Berumen354

With Google dragging their heels and sending mixed messages on this topic, Bing has come out in favour of the 1 URL to Rule Them All approach:
www.bing.com/community/site_blogs/b/webmaster/archive/2012/03/07/building-websites-optimized-for-all-platforms-desktop-mobile-etc.aspx

10% popularity Vote Up Vote Down


 

@Turnbaugh106

With the current trend towards responsive design I think you'd be correct in your assumption that (2) is the best approach.

The dividing line would be how you intend to manage the content. If you were placing different or modified content/resources on the mobile site then it may be easier and more efficient in terms of page weight to manage the site on a sub-domain.

If you have identical content and resources on both the main site and the mobile site then there is no value in the sub-domain approach.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme