Moz Q&A is closed.
After more than 13 years, and tens of thousands of questions, Moz Q&A closed on 12th December 2024. Whilst we’re not completely removing the content - many posts will still be possible to view - we have locked both new posts and new replies. More details here.
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
-
Massive unexplained organic traffic drop; disappeared from Google
Hi there,
Search Behavior | | katelynroberts
Our site has experienced a huge organic traffic drop, specifically from Google. The drop occurred on Feb 19 and I've got no clue why it happened. We have not made any significant changes to the website and it doesn't look like there was an algorithm update last week. We don't have any Google penalties or indexing issues noted, and the drop isn't specific to any particular segment/region/keyword. What am I missing? Any advice or insight is super duper appreciated. Our site is a Wordpress/WooCommerice e-commerce site with a blog and long-standing #1 ranks for keywords related to our main product offering. Screen Shot 2024-02-26 at 3.12.25 PM.png
Screen Shot 2024-02-26 at 3.07.52 PM.png0 -
Strange Traffic Movements
Hi there, I'm wondering if anyone can shed some light on this... I'm working with a client whose website is experiencing some odd organic traffic patterns. See screenshot attached. As you can see, there was a sudden cliff fall about a month ago, and then it recovered (almost) entirely. Then, a month to the day later, the same thing happened again. What is the likelihood that this is a data glitch vs an algorithm thing? Any light you can shed on this would be appreciated. Thanks,
Search Behavior | | mhenshall
Marc
Screenshot 2023-08-18 at 09.37.26.png image url)0 -
Ways to Identify Popular Search Terms
Certain searches seem intuitively like they would be popular, but don't appear so in my keyword research on Moz Pro. For example, I am a therapist and would have guessed that a lot of people would be searching for "online therapy California" during this pandemic, but actually those terms are not popular. I looked at Google Trends to see if I could understand this better, but It wasn't very helpful. Any other suggestions for where to get more information when search terms you would expect to be high volume don't appear to be so?
Search Behavior | | LPantell0 -
Target="_blank" and referral acquisition data
Hi, Any assistance would be greatly appreciated! I have been reading up on this topic but there is some contradictory articles out there and I was hoping someone could clarify the latest practise for me. Website A links out to four of its partner websites.
Search Behavior | | AMA-DataSet
These links are using a target="_blank". When i look at the acquisition data for any of the partner websites there is zero referral data from site A.
I tested this wasn't an analytics bug by using the real time feature while clicking the partner links to see what had happened, and to also find the source, but I found that they are all being returned as a source direct. Ideally id like it to show the referrals once more for reporting purposes. Do I need to add extra google analytics parameters/functions to track the outbound links? or should this referral data be appearing correctly and it is something unrelated to the links themselves? or should I throw in the towel and drop the target blanks? Thank you in advance for your time.
Best Regards.0 -
My e-commerce competes with my own wholesalers
Hi guys, I run a wholesale program, frequently my e-commerce competes with my own wholesalers on many websites like Etsy for example. Usually, the wholesaler displays the exact same picture of my website. May Google find that I have duplicate content? Is there any alternative solution for this instead of asking the wholesaler to make their own pictures? Thanks
Search Behavior | | Tiedemann_Anselm1 -
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 -
Best way to remove worthless/thin content?
I have a Wordpress site with about 3,000 pages and 1,000 of those are no value/duplicate content and drive no traffic. They are blog posts each with a single image and permalinks like example.com/post1, example.com/post2 etc. I've started by deleting pages and 301 redirecting to relevant pages that actually have content. Is deleting and 301 redirecting the best route? Is 1,000 to many 301 redirects? Should I just delete the pages that aren't really relevant to anything else? Anything else I should know about deleting all of these pages? Any help would be great!
Search Behavior | | gfreeman230 -
Trailing slash at end of URLs?
Hi, I'm just about to put up a new site and I need to decide between having no trailing slash at the end of the all the URLs, or putting one in there. I think Matt Cutts has a slight preference for them, as stated here: http://www.seomoz.org/blog/whiteboard-interview-googles-matt-cutts-on-redirects-trust-more "Matt says he would slightly advocate for using a trailing slash simply because it clearly indicates that a URL is a folder and not a document." However, I'm really wondering. I mean, if people link to my site, they'll tend not to insert a trailing slash, I'm thinking... Your thoughts would be welcome on this one! Cheers, Luke
Search Behavior | | McTaggart0