Skip to content
    Moz logo Menu open Menu close
    • Products
      • Moz Pro
      • Moz Pro Home
      • Moz Local
      • Moz Local Home
      • STAT
      • Moz API
      • Moz API Home
      • Compare SEO Products
      • Moz Data
    • Free SEO Tools
      • Domain Analysis
      • Keyword Explorer
      • Link Explorer
      • Competitive Research
      • MozBar
      • More Free SEO Tools
    • Learn SEO
      • Beginner's Guide to SEO
      • SEO Learning Center
      • Moz Academy
      • SEO Q&A
      • Webinars, Whitepapers, & Guides
    • Blog
    • Why Moz
      • Agency Solutions
      • Enterprise Solutions
      • Small Business Solutions
      • Case Studies
      • The Moz Story
      • New Releases
    • Log in
    • Log out
    • Products
      • Moz Pro

        Your all-in-one suite of SEO essentials.

      • Moz Local

        Raise your local SEO visibility with complete local SEO management.

      • STAT

        SERP tracking and analytics for enterprise SEO experts.

      • Moz API

        Power your SEO with our index of over 44 trillion links.

      • Compare SEO Products

        See which Moz SEO solution best meets your business needs.

      • Moz Data

        Power your SEO strategy & AI models with custom data solutions.

      NEW Keyword Suggestions by Topic
      Moz Pro

      NEW Keyword Suggestions by Topic

      Learn more
    • Free SEO Tools
      • Domain Analysis

        Get top competitive SEO metrics like DA, top pages and more.

      • Keyword Explorer

        Find traffic-driving keywords with our 1.25 billion+ keyword index.

      • Link Explorer

        Explore over 40 trillion links for powerful backlink data.

      • Competitive Research

        Uncover valuable insights on your organic search competitors.

      • MozBar

        See top SEO metrics for free as you browse the web.

      • More Free SEO Tools

        Explore all the free SEO tools Moz has to offer.

      What is your Brand Authority?
      Moz

      What is your Brand Authority?

      Check yours now
    • Learn SEO
      • Beginner's Guide to SEO

        The #1 most popular introduction to SEO, trusted by millions.

      • SEO Learning Center

        Broaden your knowledge with SEO resources for all skill levels.

      • On-Demand Webinars

        Learn modern SEO best practices from industry experts.

      • How-To Guides

        Step-by-step guides to search success from the authority on SEO.

      • Moz Academy

        Upskill and get certified with on-demand courses & certifications.

      • SEO Q&A

        Insights & discussions from an SEO community of 500,000+.

      Unlock flexible pricing & new endpoints
      Moz API

      Unlock flexible pricing & new endpoints

      Find your plan
    • Blog
    • Why Moz
      • Small Business Solutions

        Uncover insights to make smarter marketing decisions in less time.

      • Agency Solutions

        Earn & keep valuable clients with unparalleled data & insights.

      • Enterprise Solutions

        Gain a competitive edge in the ever-changing world of search.

      • The Moz Story

        Moz was the first & remains the most trusted SEO company.

      • Case Studies

        Explore how Moz drives ROI with a proven track record of success.

      • New Releases

        Get the scoop on the latest and greatest from Moz.

      Surface actionable competitive intel
      New Feature

      Surface actionable competitive intel

      Learn More
    • Log in
      • Moz Pro
      • Moz Local
      • Moz Local Dashboard
      • Moz API
      • Moz API Dashboard
      • Moz Academy
    • Avatar
      • Moz Home
      • Notifications
      • Account & Billing
      • Manage Users
      • Community Profile
      • My Q&A
      • My Videos
      • Log Out

    The Moz Q&A Forum

    • Forum
    • Questions
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. Home
    2. Research & Trends
    3. Search Behavior
    4. What's the best way to redirect mobile site?

    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?

    Search Behavior
    3
    7
    8295
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with question management privileges can see it.
    • DirectAsia.com
      DirectAsia.com last edited by

      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

      1 Reply Last reply Reply Quote 0
      • KristinaKledzik
        KristinaKledzik last edited by

        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.

        1 Reply Last reply Reply Quote 1
        • KristinaKledzik
          KristinaKledzik @LesleyPaone last edited by

          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.

          1 Reply Last reply Reply Quote 0
          • KristinaKledzik
            KristinaKledzik @DirectAsia.com last edited by

            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?

            1 Reply Last reply Reply Quote 0
            • DirectAsia.com
              DirectAsia.com last edited by

              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 ....

              KristinaKledzik 1 Reply Last reply Reply Quote 0
              • DirectAsia.com
                DirectAsia.com @LesleyPaone last edited by

                Thanks Leslie, interesting and useful considerations.

                1 Reply Last reply Reply Quote 0
                • LesleyPaone
                  LesleyPaone last edited by

                  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.

                  DirectAsia.com KristinaKledzik 2 Replies Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post

                  Got a burning SEO question?

                  Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.


                  Start my free trial


                  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.

                  • See all categories

                  Related Questions

                  • katelynroberts

                    Massive unexplained organic traffic drop; disappeared from Google

                    rankings visibility score organic traffic google search engine results google search

                    Hi there,
                    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.png

                    Search Behavior | | katelynroberts
                    0
                  • mhenshall

                    Strange Traffic Movements

                    seo

                    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,
                    Marc
                    Screenshot 2023-08-18 at 09.37.26.png image url)

                    Search Behavior | | mhenshall
                    0
                  • TTR1

                    Where are these "phantom visitors" and are they dangerous?

                    My Google Analytics always shows visitors on my site that do not show up with a location.  They are always shown as being referred from "ads.google.com".  Our service is exclusively domestic in the U.S., yet my user location map will show 1 domestic visitor, but 19 total visitors.  PLease see attached linked image.   Is there some sort of malware that is being exploited on my pages somewhere that these people are accessing?  Is there some way of blocking them from my site?  Should I?  Aren't they skewing my Google Analytics results?  Are they potentially dangerous?  Thanks in advance for all replies. mKEjs2H.jpg

                    Search Behavior | | TTR1
                    0
                  • AMA-DataSet

                    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.
                    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.

                    Search Behavior | | AMA-DataSet
                    0
                  • Tiedemann_Anselm

                    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_Anselm
                    1
                  • Nicktaylor1

                    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 | | Nicktaylor1
                    0
                  • Instabill

                    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,
                    Meghan

                    Search Behavior | | Instabill
                    0
                  • McTaggart

                    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 | | McTaggart
                    0

                  Get started with Moz Pro!

                  Unlock the power of advanced SEO tools and data-driven insights.

                  Start my free trial
                  Products
                  • Moz Pro
                  • Moz Local
                  • Moz API
                  • Moz Data
                  • STAT
                  • Product Updates
                  Moz Solutions
                  • SMB Solutions
                  • Agency Solutions
                  • Enterprise Solutions
                  Free SEO Tools
                  • Domain Authority Checker
                  • Link Explorer
                  • Keyword Explorer
                  • Competitive Research
                  • Brand Authority Checker
                  • MozBar Extension
                  • MozCast
                  Resources
                  • Blog
                  • SEO Learning Center
                  • Help Hub
                  • Beginner's Guide to SEO
                  • How-to Guides
                  • Moz Academy
                  • API Docs
                  About Moz
                  • About
                  • Team
                  • Careers
                  • Contact
                  Why Moz
                  • Case Studies
                  • Testimonials
                  Get Involved
                  • Become an Affiliate
                  • MozCon
                  • Webinars
                  • Practical Marketer Series
                  • MozPod
                  Connect with us

                  Contact the Help team

                  Join our newsletter
                  Moz logo
                  © 2021 - 2025 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
                  • Accessibility
                  • Terms of Use
                  • Privacy

                  Looks like your connection to Moz was lost, please wait while we try to reconnect.