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 -
Google De-Indexed Our SIte for Branded Terms?
Hello all, As of 10am Pacific on September 12th, 2013, my team has noticed that our site, www.wirelessemporium.com, does not show up on the first 5 or 6 pages of SERPs for branded terms like "wireless emporium." We have not received any messages from Google via Webmaster Tools regarding this. Major activity that we've been doing to our site is updating content, meta tags, and h1 tags, along with removing/301 redirecting certain pages that did not meet Google quality guidelines. We've also been purging our backlink portfolio of toxic links and URLs, both manually and through the disavow tool. No blackhat has been done to this site for a very long time (more than 8 months now). One thing to note is that we did have a manual spam penalty placed on us back in July of 2012, it expired in early August of 2013 after a reconsideration request was submitted, and a 2nd manual spam penalty was placed on us again later that month. We are submitting a 2nd reconsideration request this Monday. Could this or the recent Panda update have anything to with this? We are very much in need of opinions as to why this is happening to our site. 5adbd14a31de3a78b998df94f0b6d2be
Search Behavior | | eugeneku0 -
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 -
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 -
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 -
What is the best way of tracking direct traffic coming from print ads?
I have numerous print ads running and I would like to see which ads are sending traffic to my site. What is the best way of doing this? Redirects? Is this a recommended practice? Thanks!
Search Behavior | | Lael0