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
-
Deceptive site warning from Google: Java script and meta descriptions deployed.
Hi all, We received a deceptive site warning from Google recently. Seems like there is a deceptive content on some pages of the website. Some pages are removed from Google index. Meta descriptions have been deployed on the site few days ago. There is also java script on the website which we use for tracking visitors like GA. I wonder what's the reason for this alert? We believe its due to the Java script. Do you think meta descriptions will harm this bad? Any ideas? Thanks
Search Behavior | | vtmoz0 -
With MFI, should we delete our mobile version of our site?
I'll start by stating that a brand new responsive site is under development and will be launching early 2019. Until then, with Mobile First Indexing, we're curious if we should remove our mobile site altogether. Looking at Google guidelines, it looks like we have Dynamic serving content, so when a mobile device is used, a VERY TRIMMED down version of our site content is presented. I read that if a mobile version doesn't exist, google will use the MFI indexing on the desktop version still, since that is what is rendered on a mobile device. If Google starts using our mobile site for its indexing, we're not going to be looking good. At this point, are there negative affects to removing our mobile site and having the desktop version render on all devices?
Search Behavior | | Technical_Contact0 -
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 -
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 -
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 -
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 -
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