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 -
Time Spend on Site from Smartphone vs Desktop
On a website with a well optimized website for smartphones, how long time should one expect the average user spends on the website - from their smartphone - as a % of the time users spends from a desktop.
Search Behavior | | khi5
Example: if average user spends 10min on the site from a desktop, is 5min (50% of..) a decent number to expect? If anyone has any done any studies or have data on this, would be appreciated. thank you0 -
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 -
Two sites with different URLs
I help organize an ecommerce site for a company that is named after the state that the company was founded in (ex: Florida Pipes). Our programmer is thinking about creating a duplicate site that would have a name that was more location agnostic so people shopping on the site would not think that they may be ordering from far away hence incurring extra shipping charges. He said that the site would only have a different URLs, name and homepage but would link to all of the same stuff that is on the site that is up now. He said that there would be no way to tell (possibly for the layperson) that the two sites were related. Is this a good practice? Would we be penalized in search results for having two URLs linking to the same content? (We are a 30 year old company that ranks very high for our main keyword) Thank you for your input!
Search Behavior | | Winoman0 -
Blog posts not getting indexed and being outranked by scrapper sites.
Our Google traffic has dropped significantly over the last year and now we're struggling to even get our blog posts indexed. It's been extremely discouraging and we're trying to do what ever we can to fix it. I've included a screenshot of our Google traffic as well as Pages Indexed according to WebmasterTools. http://i.imgur.com/Wu1D8.jpg The Problem Our blog posts are frequently not getting indexed. Many times they are outranked by low authority scraper sites, our Twitter/FB account, etc. Sometimes our homepage will rank instead of the blog post. Sometimes we'll break a news story, get tons of quality backlinks, and still be nowhere in Google. Pretty much the only Google traffic we see is from existing posts. Still 3,200 pages indexed when we have only 1,600 posts. I guess this isn't really a problem... just waiting for the meta noindex to take effect. More details We've seen no duplicate content or other warnings from WebmasterTools. We've been constantly acquiring quality backlinks from credible sites. We deleted the useless content and fixed the canonical issues that were a result of switching servers. History Our site is a news/entertainment blog. The traffic usually has spikes depending on what's going on in the news. Nov 1, 2011 - Site kept maxing out at 30k+ visits so we switched servers. Jan 30, 2012 - Hired a writer so we could focus on other aspects of the site. Apr 19, 2012 - Noticed our posts weren't getting indexed like they used to. Suspected our writer was spinning articles but couldn't find any evidence. 90% of our blog posts were nowhere to be found in Google. Scrapper sites would outrank us for our own stories... even our Twitter account was ranking ahead of us. IF our story would show up in Google it would usually be the home page instead of the blog post. Sep 2012 - Finally got more serious about addressing the problem. Noticed a couple potentially big problems and started making changes. Canonical Issues non-www site didn't redirect to www. It showed 2 different link profiles according to OpenSiteExplorer and 0 backlinks according to Webmaster Tools. Wordpress shortlinks weren't redirecting to the actual permalink. For instance http://www.domain.com/?p=123 and http://www.domain.com/post-example were both getting indexed. For every post there were 4 different versions that Google had to choose from. http://domain.com/?p=123, http://www.domain.com/?p=123, http://domain.com/post-example, and http://www.domain.com/post-example I figured the canonical issues must have happened when we switched servers which was the reason for the drop in WebmasterTools indexed pages and increase in Not Selected pages. FIXED (Sep 15): One we fixed the canonical issue the Indexed Pages went back up however the Not Selected is still the same. Duplicate Content When we first created our site we wanted to have tons of images for each musician/athlete/actor/etc. so we uploaded about 5-10 for each person. We created a blog post for each image with no writing and the exact same post titles. As a result there were TONS of low-quality, similar posts, with virtually identical permalinks. e.g. http://www.domain.com/james-smith1, http://www.domain.com/james-smith2, http://www.domain.com/james-smith3, etc. A crawl on Sep 26 showed over 550 duplicate content warnings. FIXED (Oct 1): We deleted/301 redirected the useless pages (they weren't getting traffic anyways) and by the next crawl the number was almost to 0... which it's at now. We also had TONS of tags (since there're constantly new names in the media) that were getting indexed so we had meta robots noindex them. Questions: Why aren't a majority of our posts getting indexed? Were we penalized or just stuck because of a filter? How long should it take for meta robots to noindex the tags pages? (I did it on Sep 25 but they are still there) If a site is scraping our content (same title, image, excert) but linking to us, should we contact them and tell them to remove it? Is there anything else we need to do start getting our blog posts indexed like they used to? Should we try contacting Google to re-evaluate our site? Sorry, that was a LOT of writing. If anyone wants the URL please let me know so I can PM it to you. Any help would be greatly appreciated! Wu1D8.jpg
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 -
Googles 'freshness' update and how it may affect Estate Agents.
We have some clients who have raised concerns over how this new update will affect them. They are an Estate Agents who regularly update their property portfolio, blogs and news section etc. Can you advise how they may or may not be directly affected? Thank you.
Search Behavior | | SoundinTheory0 -
How is this Dr. Getting a Ranking on a National Site in a Local Listing?
Please follow the link for a visual. Any help would be appreciated. The query I used was "phoenix plastic surgeons". I have never seen a large national site like PlasticSurgery.org Rank in local for a specific Dr. Thoughts? Thanks! 7O1oK
Search Behavior | | Red_Spot_Interactive0