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 and Multiple Sitemaps

    Robots.txt and Multiple Sitemaps

    Technical SEO Issues
    3 2 10.9k
    • 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.
    • allstatetransmission
      allstatetransmission last edited by

      Hello,

      I have a hopefully simple question but I wanted to ask to get a "second opinion" on what to do in this situation. I am working on a clients robots.txt and we have multiple sitemaps. Using yoast I have my sitemap_index.xml and I also have a sitemap-image.xml I do put them in google and bing by hand but wanted to have it added into the robots.txt for insurance. So my question is, when having multiple sitemaps called out on a robots.txt file does it matter if one is before the other? From my reading it looks like you can have multiple sitemaps called out, but I wasn't sure the best practice when writing it up in the file.

      Example:

      User-agent: *
      
      Disallow: 
      
      Disallow: /cgi-bin/
      
      Disallow: /wp-admin/
      
      Disallow: /wp-content/plugins/
      
      Sitemap: http://sitename.com/sitemap_index.xml
      
      Sitemap: http://sitename.com/sitemap-image.xml
      
      Thanks a ton for the feedback, I really appreciate it! :) 
      J
      
      1 Reply Last reply Reply Quote 0
      • TakeshiYoung
        TakeshiYoung last edited by

        Yes, what you have is the proper format. The best way to submit sitemaps, of course, is to submit them via Google & Bing Webmaster Tools.

        Sitemaps won't have much impact on your site unless you have a really large site, so I wouldn't focus on them too much. The best way to get content crawled & indexed by Google is good internal link structure and authoritative external links.

        allstatetransmission 1 Reply Last reply Reply Quote 3
        • allstatetransmission
          allstatetransmission @TakeshiYoung last edited by

          Awesome! yea I submitted them to bing and google by hand, I just figured it couldn't hurt to have it in my robots too.

          Appreciate the feedback 🙂

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          • Multiple robots.txt files on server
            peakdistrictseo
            peakdistrictseo
            0
            8
            2.4k

          • Will it be possible to point diff sitemap to same robots.txt file.
            DirkC
            DirkC
            0
            3
            268

          • Is sitemap required on my robots.txt?
            LoganRay
            LoganRay
            0
            4
            7.3k

          • Why is robots.txt blocking URL's in sitemap?
            PurpleGriffon
            PurpleGriffon
            0
            3
            346

          • Adding multi-language sitemaps to robots.txt
            Schwaab
            Schwaab
            0
            2
            5.1k

          • Have I constructed my robots.txt file correctly for sitemap autodiscovery?
            Bedsite
            Bedsite
            0
            4
            231

          • BEST Wordpress Robots.txt Sitemap Practice??
            evolvingSEO
            evolvingSEO
            0
            2
            1.7k

          • Robots.txt versus sitemap
            RobMay
            RobMay
            0
            3
            1.7k

          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