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. Will it be possible to point diff sitemap to same robots.txt file.

    Will it be possible to point diff sitemap to same robots.txt file.

    Technical SEO Issues
    3 3 268
    • 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.
    • nlogix
      nlogix last edited by

      Will it be possible to point diff sitemap to same robots.txt file. 
      Please advice.

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

        In your sitemap you only have to link to the pages on your site - there is no need to add a link to the robots.txt file.

        Your robots.txt is always on the root of the domain (yourdomain.com/robots.txt). In your robots.txt you can put the location of your sitemap(s) - just put the following line(s) at the end of the file. It is possible to add multiple lines if you have multiple sitemaps. Alternative would be to put a link to the index type of sitemap which contains the links to the different sitemaps you have.

        Sitemap: http://www.yourdomain.com/name_of_your_sitemap.xml

        It is not strictly necessary to add the link to the sitemap in your robots.txt - you can also just indicate the location in the Search Console (Google) / Web master tools (Bing)

        Dirk

        1 Reply Last reply Reply Quote 1
        • Guest
          Guest last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 1
          • 1 / 1
          • First post
            Last post
          • 2 sitemaps on my robots.txt?
            MonkStein
            MonkStein
            0
            6
            9.2k

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

          • Will a Robots.txt 'disallow' of a directory, keep Google from seeing 301 redirects for pages/files within the directory?
            DmitriiK
            DmitriiK
            0
            4
            408

          • Sub Domains and Robot.txt files...
            Vizergy
            Vizergy
            0
            3
            160

          • Is there any value in having a blank robots.txt file?
            LiamVictor
            LiamVictor
            0
            6
            3.1k

          • Will an XML sitemap override a robots.txt
            mememax
            mememax
            0
            5
            2.4k

          • Robots.txt file
            Asher
            Asher
            0
            3
            261

          • How ro write a robots txt file to point to your site map
            Nightwing
            Nightwing
            0
            4
            8.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