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 -
Displaying different site content to users who have already visited your site
I've seen and heard about the concept of treating repeat site visitors differently, displaying different content based on behavior etc. Not sure what it's called buy Hubspot seems to offer something like this with their platform. Anyone know of a third party app (Wordpress perhaps) or tool that does this? How does this even work? Thanks for the help!!
Search Behavior | | RickyShockley0 -
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 -
Getting People to Leave Product Reviews, When they've reached our site in search of reviews
We have a product review website that has been showing a steady increase in organic traffic. However we seem to be having a disconnect between what happens when a visitor arrives. We essentially want a visitor coming to our website in search of a review, to LEAVE a review for another product they may have used... Any suggestions on ways we might encourage this? We are kind of newbies at this!
Search Behavior | | Sarah_Frantz0 -
Two sites with different URLs
I help organize an ecommerce site for a company that is named after the state that the company was founded in (ex: Florida Pipes). Our programmer is thinking about creating a duplicate site that would have a name that was more location agnostic so people shopping on the site would not think that they may be ordering from far away hence incurring extra shipping charges. He said that the site would only have a different URLs, name and homepage but would link to all of the same stuff that is on the site that is up now. He said that there would be no way to tell (possibly for the layperson) that the two sites were related. Is this a good practice? Would we be penalized in search results for having two URLs linking to the same content? (We are a 30 year old company that ranks very high for our main keyword) Thank you for your input!
Search Behavior | | Winoman0 -
Is there a site intelligence product that offers data on subdirectories of a competitor site?
Services like Compete and Quantcast provide information on competitive sites, but as far as I can tell only at the aggregated domain level. Is there a similar service (paid or free) that provides this type of data - especially demographics - for a subdirectory? For example, if my competitor has widely different product categories and I suspect that the audience for Product B is very different from his site as a whole (which is mostly focused around his major product, Product A) is there any way to get info on that without actually owning the site and having access to Analytics/Facebook OpenGraph etc.?
Search Behavior | | jliu.blitz0 -
Would you say it is more bennificial to seperate keywords in the title tag tag of a page using a common ( keyword , keyword | Domain.com) or using a hyphen as SEOmoz best practices reccommends (keyword - keyword | domain.com)?
Title tag best practices according to seomoz is the following keyowrd - keyword | brand.com but I have seen some interesting results from using a comma as to a hyphen to seperate keywords as reccomended and wanted to know which method is more crawler friendly.
Search Behavior | | JHSpecialty0 -
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