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. Have I constructed my robots.txt file correctly for sitemap autodiscovery?

    Have I constructed my robots.txt file correctly for sitemap autodiscovery?

    Technical SEO Issues
    4 2 231
    • 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.
    • Bedsite
      Bedsite last edited by

      Hi,

      Here is my sitemap:

      User-agent: *

      Sitemap: http://www.bedsite.co.uk/sitemaps/sitemap.xml

      Directories

      Disallow: /sendfriend/
      Disallow: /catalog/product_compare/
      Disallow: /media/catalog/product/cache/
      Disallow: /checkout/
      Disallow: /categories/
      Disallow: /blog/index.php/
      Disallow: /catalogsearch/result/index/
      Disallow: /links.html

      I'm using Magento and want to make sure I have constructed my robots.txt file correctly with the sitemap autodiscovery?

      thanks,

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

        The robots.txt looks fine.  I always add an allow all, even knowing it is not necessary but it makes me feel better lol.

        The problem you have is with the sitemap itself.  How big is it?  I cannot tell how many links you have because it locks up every time I go to it in both chrome and firefox.

        I tried to send a tool that is designed to pull sitemaps as the SERPS do and it also freezes up.

        How many links do you have?

        yeagerd Bedsite 2 Replies Last reply Reply Quote 1
        • yeagerd
          yeagerd @yeagerd last edited by

          Also, here is the best place to answer your questions.

          From Google:  "The Test robots.txt tool will show you if your robots.txt file is accidentally blocking Googlebot from a file or directory on your site, or if it's permitting Googlebot to crawl files that should not appear on the web. "  You can find it here

          1 Reply Last reply Reply Quote 1
          • Bedsite
            Bedsite @yeagerd last edited by

            Hey thanks for the response. There are about 14,000 url's in the sitemap. It shouldn't freeze up - please would you try again.

            http://www.bedsite.co.uk/sitemaps/sitemap.xml

            I know what you mean about the allow all 🙂

            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

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

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

            • Does this robots.txt file look right?
              ThompsonPaul
              ThompsonPaul
              0
              8
              188

            • Robots.txt - What is the correct syntax?
              teleman
              teleman
              0
              6
              297

            • Robots.txt Sitemap with Relative Path
              ClickConsult
              ClickConsult
              0
              2
              8.1k

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

            • Submitting Sitemap File vs Sitemap Index File
              AU-SEO
              AU-SEO
              0
              5
              1.4k

            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