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
-
Viewing search results for 'When searching in google we find our site in the first position but when some others search it is seen on the second page 1 st position why is this happening?'
Viewing search results for 'When searching in google we find our site in the first position but when some others search it is seen on the second page 1 st position why is this happening?'
Search Behavior | | Alyaauditors0 -
With MFI, should we delete our mobile version of our site?
I'll start by stating that a brand new responsive site is under development and will be launching early 2019. Until then, with Mobile First Indexing, we're curious if we should remove our mobile site altogether. Looking at Google guidelines, it looks like we have Dynamic serving content, so when a mobile device is used, a VERY TRIMMED down version of our site content is presented. I read that if a mobile version doesn't exist, google will use the MFI indexing on the desktop version still, since that is what is rendered on a mobile device. If Google starts using our mobile site for its indexing, we're not going to be looking good. At this point, are there negative affects to removing our mobile site and having the desktop version render on all devices?
Search Behavior | | Technical_Contact0 -
Google search operator "site:" show different result.
Search operator "site:" show incomplete information. When I search with just domain name it show only 3 link that got crawl in past week, this is the link https://www.google.com/?gfe_rd=cr&ei=mLr3VfrhN4_BuATQuYugBg&gws_rd=cr&fg=1#q=site:sierralivingconcepts.com&safe=off&tbs=qdr: but when i look a specific link it show them in any time (search tools), https://www.google.com/search?q=site:http://www.sierralivingconcepts.com/p-6300-white-silver-regence-louis-xiv-mango-wood-ornate-hall-console-table.aspx&safe=off&biw=1600&bih=775&noj=1&tbas=0&source=lnt&sa=X&ved=0CBUQpwVqFQoTCJ-4iOLK-McCFQFwjgod43gI9A But when i look in cached page it says "appeared on 11 Sep 2015" I am total confused why google not showing all the new link that it crawl from my site.
Search Behavior | | Sierra-Living-Concepts0 -
Displaying different site content to users who have already visited your site
I've seen and heard about the concept of treating repeat site visitors differently, displaying different content based on behavior etc. Not sure what it's called buy Hubspot seems to offer something like this with their platform. Anyone know of a third party app (Wordpress perhaps) or tool that does this? How does this even work? Thanks for the help!!
Search Behavior | | RickyShockley0 -
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 -
How to test a site for usability with hundreds users and get genuine feedback?
My question is twofold; firstly is there a recommended company that I could use to get feedback on my site usability. Ideally I would like this company to arrange a focus group of a couple hundred people that fit into the right demographic and organise a report on the opinions of the group and the issues faced. Secondly an in-house understanding of usability Now I would like to think that when I review a site for usability I am not biased in any way. But I believe that if I look at the page that I have created or even collaborated on that I will always miss usability issues as I frankly think my/our creation is amazing. I'm interested to know how people rank and check their site usability and what factors rank highest in their assessments i.e. the tools you use and how you use them.
Search Behavior | | Stefan-Thorpe0 -
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 -
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