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 Index Issue - Indexing pages that don't exhist
Hi All, I have noticed a weird issue when performing a search on Google to show me all the pages it is indexing of our site. site:www.one2create.co.uk It brings up most of our website pages but then is also brings up a few HTTPS urls (our site has not been converted to HTTPS yet) but also the URL path, Title, and Meta Description are from one of our clients websites (an Automotive Job site). When clicked they take you to a generic 404 server error page, not our branded 404 page. The site that it has taken the url, title and meta description from is on a different server completely so I don't see how it has even managed to get that information and linked it to our site? Has anyone seen anything like this before? And what is the best way to fix it? We have asked Google to re-index the site but still no luck.
Search Behavior | | Jvickery0 -
My site traffic decreasing day by day
unfortunately its very bad for us . after panda update not affected any more but recent time . anybody can help us to fix the issue blog http://gurujobalert.com/ please thanks in advance
Search Behavior | | jenindras10 -
Google Analytics Segments - Can't find location
Hi all, I am trying to set up a Google Analytics segment with the location as 'Kurdistan'. I have tried all location groupings (city, region etc) and am unable to locate it. Anyone else not able to locate it? Or does anyone know why I can't? Thanks,
Search Behavior | | Davinia22
Davinia0 -
Moz Showing 1500+ errors on my site but webmaster showing 130ish. Whats going on?
This Morning when I check my moz account it said I had 1500+ high priority issues, The break down of issues were 1432 4xx Client errors, 49 duplicate issues, 31 title page missing. but when I check my webmaster account is it only showing I have around 135 issues. I have been monitoring is the ranking for my homepage and it's been fluctuating between appearing around the 10th page for me to not at all. which begs the question that I'm being penalized or what is going on? dor4 7xtd
Search Behavior | | Nicktaylor10 -
Has anyone found a best practice for ranking a client who has one central office location, but a large, regional service area that they want to rank for?
All the most recent local search ranking is based upon physical addresses, but what happens when someone provides services and has staff 100 miles from that central office location, but no physical address to work with?
Search Behavior | | BehrDesign0 -
Google indexing PDF's
Hello, We work heavily on E-commerce SEO and recently Google has started to index PDF pages (Datasheets) added to the product pages instead of the actual product pages. Has anyone else noticed this at all? Seems to have got worse over the last month or so. Thanks
Search Behavior | | voipme0 -
Using Google Analytics to See What Time of Day Visitors View My Site
Hi folks, My company has Google Analytics setup for all of our websites, but I am a bit stumped on something. Now, this may not be possible, but am I able to see what time of day visitors most frequently view my blog? I would like to optimize blog post publishing for when I know we have in influx of visitors, yet I cannot find this information on GA. Any input would be much appreciated. Regards,
Search Behavior | | Instabill
Meghan0 -
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