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
-
Google Index Issue - Indexing pages that don't exhist
Hi All, I have noticed a weird issue when performing a search on Google to show me all the pages it is indexing of our site. site:www.one2create.co.uk It brings up most of our website pages but then is also brings up a few HTTPS urls (our site has not been converted to HTTPS yet) but also the URL path, Title, and Meta Description are from one of our clients websites (an Automotive Job site). When clicked they take you to a generic 404 server error page, not our branded 404 page. The site that it has taken the url, title and meta description from is on a different server completely so I don't see how it has even managed to get that information and linked it to our site? Has anyone seen anything like this before? And what is the best way to fix it? We have asked Google to re-index the site but still no luck.
Search Behavior | | Jvickery0 -
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 -
Isn't Buzzsumo Just A Measure Of Advertising Budget?
Hello, I see Buzzsumo being widely touted as a great way of seeing what other people are writing on a niche topic to give an indication of what is performing well according to the number of social media shares. Is this a good metric considering that any proportion of the shares could be paid for or secondary to advertising? I have looked at some of the sharers and often there is no data logged, or only a few listed. I see that often the longer posts have more shares; if I had written a 7000 word post I would be more likely to push it harder on social media and spend more promoting it, I wonder if this is skewing the data also. Thanks for your opinions on this. Toby
Search Behavior | | T0BY0 -
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 -
Getting People to Leave Product Reviews, When they've reached our site in search of reviews
We have a product review website that has been showing a steady increase in organic traffic. However we seem to be having a disconnect between what happens when a visitor arrives. We essentially want a visitor coming to our website in search of a review, to LEAVE a review for another product they may have used... Any suggestions on ways we might encourage this? We are kind of newbies at this!
Search Behavior | | Sarah_Frantz0 -
Best way to check the number of backlinks?
I know everyone is going to say opensiteexplorer (for obvious reasons) however why is there such a diffference in numbers between the following resources: 1. Open Site Explorer - 23 ref. domains & 939 links 2. Majestic SEO - 49 ref. domains & 599 links (fresh) / 111 ref. domains & 2332 links (historic) 3. Google Webmaster Tools - 6001 I understand the difference between fresh/historic in Majestic, it's the vast difference in numbers between the three services?!
Search Behavior | | seanjohnson0 -
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 -
Changing Site Structure Drastically
Howdy Guys, We are in the process of changing our sites structure dramatically, at the moment this is how an internal page / URL reads: Www.mydomainname.co.uk/ww.sys/pagename We will he changing our site over to wordpress very shortly and will have the correct permalinks in place. We are scared it's going to hurt our rankings as we are in the top 6 for a highly competitive keyword at the moment - the bouns is our domain name is 11yrs old and we have a PR of 4. We have setup all the 301s in web.configuration file just wondering if any of you have made a dramatic change like this and been dropped off the rankings.....
Search Behavior | | ScottBaxterWW0