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
-
Ways to Identify Popular Search Terms
Certain searches seem intuitively like they would be popular, but don't appear so in my keyword research on Moz Pro. For example, I am a therapist and would have guessed that a lot of people would be searching for "online therapy California" during this pandemic, but actually those terms are not popular. I looked at Google Trends to see if I could understand this better, but It wasn't very helpful. Any other suggestions for where to get more information when search terms you would expect to be high volume don't appear to be so?
Search Behavior | | LPantell0 -
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 -
Wanting to see when a user exists form site and its jopurney while on site please
Hi there, Wondering if you can help please? I am needing to know bounce rates on a landing page and also wanting to know if they landed on that page and went from that page to another and another... how can i look at that on MOZ please? Thanks Cass
Search Behavior | | AITLtd0 -
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 -
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 -
Best way to remove worthless/thin content?
I have a Wordpress site with about 3,000 pages and 1,000 of those are no value/duplicate content and drive no traffic. They are blog posts each with a single image and permalinks like example.com/post1, example.com/post2 etc. I've started by deleting pages and 301 redirecting to relevant pages that actually have content. Is deleting and 301 redirecting the best route? Is 1,000 to many 301 redirects? Should I just delete the pages that aren't really relevant to anything else? Anything else I should know about deleting all of these pages? Any help would be great!
Search Behavior | | gfreeman230 -
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 -
Home page (s) deindexed
Ok odd one. 2 sites hosted on go daddy, neither sites has any cause for concern. But both sites have had there home pages deindexed or - 10000 penalty for no reason. We do the SEO for 1 site and not for the other. The server is shared with go daddy no idea on how many other 3rd party sites are on it. I've filed a reinclusion request for both sites. Any help is more than welcome.
Search Behavior | | therealmarkhall0