The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • 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 Q&A Forum
    2. Categories
    3. Technical SEO Issues
    4. Robots.txt & Mobile Site

    Robots.txt & Mobile Site

    Technical SEO Issues
    3 3 4.1k
    • 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.
    • CeeC-Blogger
      CeeC-Blogger last edited by

      Background -  Our mobile site is on the same domain as our main site. We use a folder approach for our mobile site abc.com/m/home.html We are re-directing traffic to our mobile site vie device detection and re-direction exists for a handful of pages of our site ie most of our pages do not redirect the user to a mobile equivalent page.

      Issue – Our mobile pages are being indexed in desktop Google searches

      Input Required – How should we modify our robots.txt so that the desktop google index does not index our mobile pages/urls

      User-agent: Googlebot-Mobile

      Disallow: /m

      User-agent: `YahooSeeker/M1A1-R2D2`
      

      Disallow: /m

      User-agent: `MSNBOT_Mobile`
      

      Disallow: /m

      Many thanks

      1 Reply Last reply Reply Quote 0
      • Saijo.George
        Saijo.George last edited by

        User-agent: Googlebot-Mobile

        Disallow: /m

        would't that statement prevent Googlebot-Mobile from crawling the mobile pages ? Why would you want to do that ?

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

          Hi,

          The fact that you do not have mobile versions for all pages of the site makes your case a bit of an odd one when it comes to best practices.  I would recommend if at all possible to address this and make all pages available in mobile format also.

          If for whatever reason this is not possible then I think you are better off using a meta robots tag NOINDEX to get your mobile results out of the serps completely and a rel canonical to the relevant desktop page to make extra sure there are no issues with duplicate content.

          If you can get all pages into a mobile version then you will want to implement proper redirects based on user string as you are doing, and also implement rel alternate/canonical tags between the desktop and mobile pages of the site (which should make sure the right version of the site shows up in the relevant serps). For more details on the whole setup check:

          http://moz.com/blog/how-to-optimize-a-mobile-site and
          http://moz.com/blog/mobile-seo-process

          1 Reply Last reply Reply Quote 1
          • 1 / 1
          • First post
            Last post
          • Robots.txt best practices & tips
            ThompsonPaul
            ThompsonPaul
            0
            4
            3.2k

          • Want to Target Mobile site for Google Mobile Version and Desktop Site for Google Desktop Version
            Cyrus-Shepard
            Cyrus-Shepard
            0
            4
            1.6k

          • Removing robots.txt on WordPress site problem
            nextlevelweb
            nextlevelweb
            0
            21
            38.1k

          • Robots.txt blocking site or not?
            RyanKent
            RyanKent
            0
            2
            445

          • Mobile site: robots.txt best practices
            AlanMosley
            AlanMosley
            0
            2
            542

          • Use of Robots.txt file on a job site
            jennita
            jennita
            0
            5
            850

          • Need Help With Robots.txt on Magento eCommerce Site
            Francisco_Meza
            Francisco_Meza
            0
            4
            5.3k

          • Robots.txt and robots meta
            TheEspresseo
            TheEspresseo
            0
            5
            1.1k

          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