What's the best way to redirect mobile site?
-
Hi,
We have a mobile website using a sub-directory domain.com/m/whatever-page/. Our mobile is completely separate site from desktop version.
What's the best way to handle the redirection from mobile visitors and those that are searching from mobile and see desktop version in the search result?
Appreciate anyone's expert advise.
Thanks,
Willy -
I've responded to specific comments below, but here's the information you need to redirect: https://developers.google.com/webmasters/smartphone-sites/details
The gist is, you need:
- 301 or 302 redirects from the desktop site to the mobile site, based on user agent detection
- Rel="canonical" tag on each mobile page pointing to to each desktop page
- Rel="alternate" tag on each desktop page pointing to each mobile page
- A Vary HTTP header
- A mobile sitemap
As I mentioned below, I also recommend that you have a link at the bottom of the mobile and desktop sites pointing to the other version. That way, if you get the redirects wrong, people can self correct.
-
I disagree with Lesley, saying that you should just ask. I would recommend that you redirect to the mobile version of the the site, then ask. Basically: get people onto the page that you're 90% sure they want to be on, but let them switch back and forth. Just add a link to the footer of the deskop and mobile sites letting people switch between the two.
He's correct about redirecting to the right page, though. Don't redirect all of your desktop pages to the mobile homepage. When Google ranks your desktop pages on mobile search results, it checks out the redirect to mobile content. If the mobile content isn't similar, the page won't rank in mobile.
-
The best way to handle redirects is to use a 301 or 302 redirect (this is probably the only time in SEO that either gives the same result) based on user agent detection.
Is that enough detail?
-
Just to add to our original question. It seems pretty clear that device detection is accomplished by user agent detection. Under our original plan to redirect visitors on mobiles to a new URL which carries the mobile version of the page, how should that redirection be accomplished in a search engine compatible fashion? What type of redirection should be used?
I suspect we'll need to continue with our plan to redirect to a different URL for now, but am concerned that this needs to happen in a way which won't harm our SEO.
many thanks in advance for any help with this ....
-
Thanks Leslie, interesting and useful considerations.
-
The best way is to ask. With the ever changing landscape of devices, automatically redirecting is falling out of favor. I would use a cookied little bar at the bottom of the page that asks if they want to view the mobile site. Let them select or close it and have it expire after the session.
One thing to keep in mind, google wants you to redirect to the same mobile page. Like if a user is on site.com/products/nifty-hair-gizmo.html don't redirect them to m.site.com, redirect them to m.site.com/products/nifty-hair-gizmo.html
The reason that automatically redirecting is falling out is because of devices like the new chrome cast and how other phones are set up. I might browse to your site on my phone and be casting it to my 46" lcd and you would never know. But I am going to be irritated if I have to look at your site in a mobile version on my tv.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
How & What is the best advice on Keyword Cannibalization & get onpage optimized perfectly?
Hi all mozzers, I am having confusion to understand the fact and importance to target a single or related grouped keywords which is quite broader in terms of relevancy being found within our business. Let's explain more in detail:
Search Behavior | | KammySEO
Suppose we have a website: abc.com deal businesses in "Party Supplies, Party Decorations" Where the term "Party Supplies" being used exact or randomly many places, please see below finalized Titles respective to each landing page: abc.com/birthday/
title - Birthday Party Supplies - Kids Birthday Party Decorations Ideas abc.com/wedding/
title - Wedding Favors - Wedding Party Decorations & Centerpieces abc.com/baking/
title - Buy Baking Supplies - Cupcake & Cake Decorating Supplies abc.com/occasions/
title - Special Occasions Parties Supplies & Events - Party Time My main concern is, do our keyword party supplies gets stuck with "Keyword Cannibalization" ? If yes then what is the best advice you folks like to input here in order to safeguard and optimize best our landing pages for the such broader related search terms within the businesses. I am looking for best answer here0 -
When Googling site:mydomain.com what does listing order tell us?
To find all the pages on my site that are indexed by Google I can search using site:mydomain.com and it gives pages of results. But what does the order of results relate to? Is it page rank or strength? My list of pages doesn't appear to be in order of strength. And it's definitely not by age or alphabetical...
Search Behavior | | GregB1230 -
How to approach SEO for a large site that doesn't have specific keyword goals?
So, I have a project that has 10,000+ page of unique editorial content in a specific industry. They currently get about 500,000 pageviews a month and average just under 2 pages per visit. It has a 66 domain authority and has been doing "the basics" for SEO for about 7 years (headline is an H1, URL is custom while the headline is more "reader friendly", description is a snippet of the body copy a little into the first paragraph, nofollow in the comments). The crux is that it's an editorial publication so they're not targeting specific keywords, but a wide swath of keywords. Would it be best to just dive in and figure out some of the less competitive keywords for some of the articles that they could tailor some content to rank better for, then just move onto more and more? What are some ways to approach this if they just want to raise their general traffic and relevancy to the next level?
Search Behavior | | jpea0 -
Where are the best resources for Real Estate Internet Marketing?
I've done a bit of research, but I have yet to come across a list of highly respected marketers who focus on Real Estate...are there any must know sites or individuals who write on the topic regularly? Based on the Comp analysis we've done for a local boutique real estate firm, most of the competing link profiles are dirty...and we were hoping to get a more holisitic look at what works for the long term. Any push in the right direction is greatly appreciated.
Search Behavior | | secretstache1 -
Buying expired domains with PR and redirecting question :)
Hi, Might be a silly question but wanted to ask it anyway. Lets say I run a gifts website and this year I decide I want to try for a more competitive keyword 'Christmas Gifts'. Now each year I see a lot of search on for example 'Christmas Gifts 2011' and because of the search volume the EMD for this is gone (an affiliate has brought it or something). So the affiliate works hard on ranking it builds up say PR2-PR3 but when it comes around to renewing the domain they don't bother because 2011 search volume has passed and they move onto 'Christmas Gifts 2012'. My question is this: If I was to buy the 'Christmas Gifts 2011' when it expires and redirect it to my Xmas page would it pass the PR and give my new page a boost?
Search Behavior | | activitysuper0 -
Googles 'freshness' update and how it may affect Estate Agents.
We have some clients who have raised concerns over how this new update will affect them. They are an Estate Agents who regularly update their property portfolio, blogs and news section etc. Can you advise how they may or may not be directly affected? Thank you.
Search Behavior | | SoundinTheory0 -
Can we rank as a related search query on a competitor's brand keyword?
One of my clients wanted to know whether it's possible for him to rank as one of the related pages on Google for a brand name of a competitor. I honestly don't know whether it's possible so any ideas whether it's possible and if so, ideas on what can be done is greatly welcome. Thank you in advance. 🙂
Search Behavior | | als0070 -
Google Analytics Benchmarking Newsletter: How does your site perform?
With Google recently releasing benchmarking data I am curious as to what you all see across the various types of website niches that you work with (eCommerce, news, blog, services, small business, etc). And how SEO'd websites compare with this "raw" data provided by google. We have one medium size (12,000 products) strictly eCommerce website that has a bounce rate of 37% and an avg time on site of 5:20 While two other medium size eCommerce/blog sites have a bounce rate of 57% and 59% with average time on site of 2:37 and 2:30 respectively. Finally, I manage a website for a local small business that provides business and home cleaning services. This site has a bounce rate of 45% and 1:40 average time on site. How do your sites perform in these areas? Is it typical to see this great of a disparity between strict eCommerce websites and those sites that are both informational and transactional in nature? What about other kinds of websites? Cheers!
Search Behavior | | prima-2535091