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 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 -
Best Way To Estimate Size Of Customer Base?
Hi. Just wondering what you all thought would be the best way to estimate a customer base for a certain niche? I'd be willing to pay for this service, if there are companies who do this sort of thing. But I'm assuming I'll be able to do it for free... How much weight should I putting into facebook ad data? Any advice?
Search Behavior | | PedroAndJobu0 -
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 -
Internal Site Search Analysis
Hi Folks, I have about 6,000 internal site search phrases that I want to analyze. There are many variations and duplicates that have similar intent within the data, e.g. Employment, Employment Opportunities, Employment Application. Does anyone have any thoughts on how I can aggregate the data to get an idea of user intent. There's a lot of long-tail in there. The data does not come from Google's site search tool. I just have a spreadsheet of the terms and the number of times they were searched. Cheers!
Search Behavior | | BedeFahey0 -
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 -
Why would my Bounce Rate drop from 40% to 2% over 3 days without making any major changes to my site www.hiltonhead.com?
Our Wordpress site has had an historical bounce rate of 40% for the last 3 years but last Thursday it dropped to 17%, Friday to 7% and now is running at 2%. The pageviews per visit have also increased from 3 to almost 6. Thanks
Search Behavior | | CorkyGifford0 -
Why is our site jumping all over the place?
Hi there, We've been having some issues with our site recently where it seems to be jumping very erratically around the google rankings. The site used to be pretty consistent on page 1/2 of google for certain term, but then in late April(ish) it took a dive down the rankings and flicked about between positions 30-70(ish). Late last month, it re-appeared suddenly on page 1 in position 10 and stayed there up until yesterday (6th July) and it now appears to have dived to position 287th or there abouts! At the same time a deep link page has appeared at position 54, which seems a bit strange to me. Any help would be appreciated! Thanks
Search Behavior | | PeterAlexLeigh0