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 -
Wanting to see when a user exists form site and its jopurney while on site please
Hi there, Wondering if you can help please? I am needing to know bounce rates on a landing page and also wanting to know if they landed on that page and went from that page to another and another... how can i look at that on MOZ please? Thanks Cass
Search Behavior | | AITLtd0 -
Google smacked my site and dropped all rankings, can't find out why
I have checked out everything, I mean everything. We have no dupe content, our content is a little thin, but it is ours and accurate enough to help our customers.We follow all SEO guidelines and make sure we de-index any pages with no / little content (like privacy, or faq) All in all, we haven't done any major updates to the sites, and everything was great (page one on almost all kw) but beginning of the month, all kw wiped to the second page, than third, than back to one and now pretty much gone (rank 100-200) I really don't know what to do. We didn't receive a manual action, and the last algo update was nothing big to cause such a drastic change. Meanwhile our competition (multiple sites) are gaining in ranks and nothing happened to them (most of them have even less content and not even SSL) Negative SEO is out of question, I check all links via ahrefs every other day. Any help is appreciated Thanks
Search Behavior | | s-s0 -
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 -
My satellite website is ranking better than my actual site. Why and what to do?
This is our website: www.sauspiel.de and this is the satellite website. As the satellite site has a better ranking for the keyword "schafkopf" since two or three weeks we wonder how this could happen and what would be best to change it or improve the situation. Shall we take down the satellite site, redirect to the "real" site or try to downgrade? And what would you consider to be the (strongest) reason? Any suggestions? Thanks a lot for your help and assessment!
Search Behavior | | sauspiel0 -
Buying expired domains with PR and redirecting question :)
Hi, Might be a silly question but wanted to ask it anyway. Lets say I run a gifts website and this year I decide I want to try for a more competitive keyword 'Christmas Gifts'. Now each year I see a lot of search on for example 'Christmas Gifts 2011' and because of the search volume the EMD for this is gone (an affiliate has brought it or something). So the affiliate works hard on ranking it builds up say PR2-PR3 but when it comes around to renewing the domain they don't bother because 2011 search volume has passed and they move onto 'Christmas Gifts 2012'. My question is this: If I was to buy the 'Christmas Gifts 2011' when it expires and redirect it to my Xmas page would it pass the PR and give my new page a boost?
Search Behavior | | activitysuper0 -
Google Is Displaying An Alt image tag as my homepage's page title
Google is randomly displaying the alt image tag as the page title for my homepage. It happens when you search for the brand name, but the page title appears as "BrandName Logo" (obviously not "BrandName"). Has anybody seen this happen before?
Search Behavior | | MichaelWeisbaum0 -
Is there way to pull a report by date a backlink was aquired?
I'm trying to figure out if the lift in our traffic has anything to do with a new backlink. Is there a way to get an alert anytime a new site links back to us our pull a backlink report by date.
Search Behavior | | M.Seals0