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
-
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 site: search showing twice amount of indexed pages. why?
I have around 50k pages indexed on my site but when I do a google site: of my site it shows around 100k pages indexed. Why is it showing so much more? It is also only showing around 700 pages indexed in my web masters account for the site. Background: We have a custom site map being generated automatically. Let me know if you would like more info, Thanks.
Search Behavior | | Nicktaylor10 -
When Googling site:mydomain.com what does listing order tell us?
To find all the pages on my site that are indexed by Google I can search using site:mydomain.com and it gives pages of results. But what does the order of results relate to? Is it page rank or strength? My list of pages doesn't appear to be in order of strength. And it's definitely not by age or alphabetical...
Search Behavior | | GregB1230 -
What to do with Redirects
I need some advise. I am remapping the eCommerce Categories to achieve a few goals: Have better landing pages - for a better user experience. I've been a bad boy - some crappy links. Panda did hurt. I've added layered navigation and faceted search. In order to achieve a better user experience I've had a to break up the old categories. For example, when you landed on these pages - you had to choose between different sets of gender and medal type. Model Name Mens Gold Mens Stainless Ladies Two Tone Mid-Size Yellow Gold Do you see? So - here is what I am doing.. I created a better menu to be a lot more specific for people who land on other pages to get there. Now they can goto mens model name and select stainless or whatever, if they want, to dig in there or use the layered navigation. What we also did is now you can even view 20 products on these pages too as well as see the layered navigation to filter. Now this is my question - I'm creating a list of these old categories and my plan is to 302 them to the search page with the faceted search. I have my search page globally, noindex, nofollow - is this the best strategy? How would you do it? Apart from Redirects - what have you , other SEOs, learned about layered navigation and faceted search - where can it cause issues for SEO?
Search Behavior | | joseph.chambers0 -
Micro Location Site with EMD , Property related
Hi I have a client, who focus is on Commercial property leasing in Johannesburg and surrounding area's. We find that people search for "area"& "property type" The client bought 50 exact match domains for keywords that we currently run in Google Adwords for example:We advertise on keywords: "Midrand offices to let" and bought Midrandofficestolet.com, now the group wants to make small micro sites with unique article about commercial property in that area "Midrand" with a link to the main site where the "midrand properties" are listed . The feeder or micro sites will also have contact details of main site. the domains will all be hosted on the same server, registered to the same owner est. Is this typical link farming? or should we rather build the articles on the main website and park the domains on the area categories? The clients main-set is that he will same money on adwords by owning the EMD and from that link to his main site Your guidance will be much appriciated
Search Behavior | | Zooka0 -
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 -
Google Analytics Benchmarking Newsletter: How does your site perform?
With Google recently releasing benchmarking data I am curious as to what you all see across the various types of website niches that you work with (eCommerce, news, blog, services, small business, etc). And how SEO'd websites compare with this "raw" data provided by google. We have one medium size (12,000 products) strictly eCommerce website that has a bounce rate of 37% and an avg time on site of 5:20 While two other medium size eCommerce/blog sites have a bounce rate of 57% and 59% with average time on site of 2:37 and 2:30 respectively. Finally, I manage a website for a local small business that provides business and home cleaning services. This site has a bounce rate of 45% and 1:40 average time on site. How do your sites perform in these areas? Is it typical to see this great of a disparity between strict eCommerce websites and those sites that are both informational and transactional in nature? What about other kinds of websites? Cheers!
Search Behavior | | prima-2535091