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
-
What is the best way to learn google analytics?
Hi I'm trying to get my head around google analytics as a first time user. Can any suggest the best place to start after I have taken a look through the whole thing, how do I go about managing and tracking performances on my website? eg: Registrations/sign ups, conversions all that sort of thing Some advice will be much appreciated Thanks
Search Behavior | | edward-may0 -
Google smacked my site and dropped all rankings, can't find out why
I have checked out everything, I mean everything. We have no dupe content, our content is a little thin, but it is ours and accurate enough to help our customers.We follow all SEO guidelines and make sure we de-index any pages with no / little content (like privacy, or faq) All in all, we haven't done any major updates to the sites, and everything was great (page one on almost all kw) but beginning of the month, all kw wiped to the second page, than third, than back to one and now pretty much gone (rank 100-200) I really don't know what to do. We didn't receive a manual action, and the last algo update was nothing big to cause such a drastic change. Meanwhile our competition (multiple sites) are gaining in ranks and nothing happened to them (most of them have even less content and not even SSL) Negative SEO is out of question, I check all links via ahrefs every other day. Any help is appreciated Thanks
Search Behavior | | s-s0 -
Google site: search showing twice amount of indexed pages. why?
I have around 50k pages indexed on my site but when I do a google site: of my site it shows around 100k pages indexed. Why is it showing so much more? It is also only showing around 700 pages indexed in my web masters account for the site. Background: We have a custom site map being generated automatically. Let me know if you would like more info, Thanks.
Search Behavior | | Nicktaylor10 -
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 -
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 -
Is there such a thing as to many 301 redirects?
Our shopping cart automatically generates the URL for each product using keywords from the product titles, because of this EVERY TIME we change titles etc. the URL changes and a 301 is automatically generated. On a site with only about 550 pages in our sitemap and for indexing we have about 550 301 redirects. Does anyone know how google handles this? This seems like a terrible ratio of 301's to indexed pages. But I don't know if Google cares about this or not.
Search Behavior | | absoauto0 -
Massive Google Drop on two sites!
Hi All, We have experienced a massive Google drop on Two of our eCommerce websites in the past week. From Feb - July we were ranked 2 for various key words In Aug we dropped to 8 In September to 96 if not lower. We pay for monthly link building and add unique product info each week (but not much new content such as articles or blogs). My SEO guys has not been that helpful and just sent me a link to the Panda update blog, which doesn't mean a great deal to me. Obviously this has had a massive effect on business, and ideally i need to diagnose the problem and find a new startegy on moving forward, so most likely looking for a for a new SEO guy/company as well. I need someone is proactive, communicates well and make constant suggestions about moving forward not just link building. One thing I would like to add is these two site have a different homepage, category and range structure, but do share some if the 2000 product database. Can anyone help? Any advice on sorting this would be gratefully appreciated. Thanks M
Search Behavior | | etsgroup0 -
Drastic Fluctuation in Site Rankings
All, Hope you are having a good day! Recently I had a strange issue with one of my site and I am not sure what might have caused it. I am sure this would be a good place to discuss about it and get some feedback from the elite people in the industry. Here is the problem. Last weekend (On sunday noon) my site which was ranking on Page 1 suddenly dropped its ranking for its main keywords to nowhere, I was panicked to see what was happening and by the end of the day it was slowly coming back and by next morning everything was back. Again on Wednesday noon, the same thing happened. However, this time it din't come up by the next morning. Making it worse, all of my keyword rankings went down from good spots to no where and there was a point when I could no longer see my site. I was worried something might have happened this time and was not sure what could the reason be. On Friday afternoon all the ranking came up better than the previous (which is a very good news for me). At the moment, my site is doing very well and I am really happy about it. I did realize that Google was updating their Algorithm, but this behavior is the strangest I have seen over years. Can someone enlighten me on this peculiar behavior. Is there something wrong with my site or is it a common thing that I have never noticed? I have never done anything blackhat for the site. To be honest, all I have done is some low level link building on the site and the site had some advantage of a re-direct from one my previous site which was doing very well in search engines (I changed it to take advantage of the new domain I had). Your opinions/suggestions are a appreciated.
Search Behavior | | frostmill0