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. SEO and Digital Marketing Forum
    2. Categories
    3. Research & Trends
    4. Search Behavior
    5. 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
    7 3 8.5k
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic 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


                  Explore more categories

                  • Moz Tools

                    Chat with the community about the Moz tools.

                    Getting Started
                    Moz Pro
                    Moz Local
                    Moz Bar
                    API
                    What's New

                  • SEO Tactics

                    Discuss the SEO process with fellow marketers

                    Content Development
                    Competitive Research
                    Keyword Research
                    Link Building
                    On-Page Optimization
                    Technical SEO
                    Reporting & Analytics
                    Intermediate & Advanced SEO
                    Image & Video Optimization
                    International SEO
                    Local SEO

                  • Community

                    Discuss industry events, jobs, and news!

                    Moz Blog
                    Moz News
                    Industry News
                    Jobs and Opportunities
                    SEO Learn Center
                    Whiteboard Friday

                  • Digital Marketing

                    Chat about tactics outside of SEO

                    Affiliate Marketing
                    Branding
                    Conversion Rate Optimization
                    Web Design
                    Paid Search Marketing
                    Social Media

                  • Research & Trends

                    Dive into research and trends in the search industry.

                    SERP Trends
                    Search Behavior
                    Algorithm Updates
                    White Hat / Black Hat SEO
                    Other SEO Tools

                  • Support

                    Connect on product support and feature requests.

                    Product Support
                    Feature Requests
                    Participate in User Research

                  • See all categories

                  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
                  • Digital Marketers
                  Free SEO Tools
                  • Domain Authority Checker
                  • Link Explorer
                  • Keyword Explorer
                  • Competitive Research
                  • Brand Authority Checker
                  • Local Citation 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 - 2026 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.