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. On-Page / Site Optimization
    4. How do we handle sitemaps in robots.txt when multiple domains point to same physical location?

    How do we handle sitemaps in robots.txt when multiple domains point to same physical location?

    On-Page / Site Optimization
    8 2 7.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.
    • nordicnetproducts
      nordicnetproducts last edited by

      we have www.mysite.net, www.mysite.se, www.mysite.fi and so on. all of these domains point to the same physical location on our webserver, and we replace texts given back to client depending on which domain he/she requested.

      My problem is this: How do i configure sitemaps in robots.txt when robots.txt is used by multiple domains? If I for instance put the rows

      _Sitemap: http://www.mysite.net/sitemapNet.xml_
      _Sitemap: http://www.mysite.net/sitemapSe.xml_

      in robots.txt, would that result in some cross submission error?

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

        I see no need to use robots.txt for that. use Google and Bings webmaster tools. Here you have each domain registered  and can submit sitemaps to them for each domain.

        If you want to make sure that your sitemaps are not crawled by a bot for a wrong language. I would set it up in the .htaccess to test for the entrance domain and make sure to redirect to the right file. Any bot will enter a site just like a browser so it needs to obey the server. so if the server tells it to go somewhere it will.

        the robots.txt can't by it self, do what you want. The server can however. But in my opinion using bing and google webmaster tools should do the trick.

        nordicnetproducts 1 Reply Last reply Reply Quote 1
        • nordicnetproducts
          nordicnetproducts @ReneReinholdt last edited by

          Thanks for your response René!

          Thing is we already submit the sitemaps in google analytics, but this SEO company we hired wants us to put the sitemaps in robots.txt as well.

          The .htaccess idea sounds good, as long as google or someone else dont think we are doing some cross-site submission error (as described here http://www.sitemaps.org/protocol.php#submit_robots)

          ReneReinholdt nordicnetproducts 5 Replies Last reply Reply Quote 0
          • ReneReinholdt
            ReneReinholdt @nordicnetproducts last edited by

            you can't submit a sitemap in GA so I'm guessing you mean GWT 🙂

            Whether or not you put it in the robots.txt shouldn't be a problem. since in each sitemap, the urls would look something like this:

            Sitemap 1:<url><loc>http:/yoursite.coim/somepage.html</loc></url>

            Sitemap 2:<url><loc>http:/yoursite.dk/somepage.html</loc></url>

            I see no need to filter what sitemap is shown to the crawler. If your .htaccess is set-up to redirect traffic from the TLD (top level domain eg .dk .com ex.) to the correct pages. Then the sitemaps shouldn't be a problem.

            The best solution would be: to have a web in web. (a folder for each site on the server) and then have the htaccess redirect to the right folder. in this folder you have a robots.txt and a sitemap for that specific site. that way all your problems will be gone in a jiffy. It will be just like managing different 3 sites. even though it isn't.

            I am no ninja with .htaccess files but I understand the technology behind it and know what you can do in them. for a how to do it guide, ask google thats what I allways do when I need to goof around in the htaccess. I hope it made sense. 🙂

            1 Reply Last reply Reply Quote 1
            • ReneReinholdt
              ReneReinholdt @nordicnetproducts last edited by

              actually google has the answer, right here: http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=75712

              I always try to do what google recommends even though something might work just as well.. just to be on the safe side 🙂

              1 Reply Last reply Reply Quote 1
              • nordicnetproducts
                nordicnetproducts @nordicnetproducts last edited by

                Yes, I mean GTW of course :).

                A folder for each site would definitely make some things easier, but it would also mean more work every time we need to republish the site or make configurations.

                Did I understand that googlelink correctly in that if we have verified ownership in GWT for all involved domains cross-site submission in robots.txt was okay? I guess google will think its okay anyway.

                1 Reply Last reply Reply Quote 0
                • ReneReinholdt
                  ReneReinholdt @nordicnetproducts last edited by

                  yup 🙂

                  1 Reply Last reply Reply Quote 1
                  • nordicnetproducts
                    nordicnetproducts @nordicnetproducts last edited by

                    Thanks for your help René!

                    1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    • First post
                      Last post
                    • Multiple domains for the same business
                      Bryan_Loconto
                      Bryan_Loconto
                      1
                      7
                      125

                    • Multiple keywords over multiple domains - am I missing the point?
                      shinywhitebox
                      shinywhitebox
                      0
                      3
                      166

                    • Multiple domains
                      FedeEinhorn
                      FedeEinhorn
                      0
                      7
                      122

                    • How to Handle Multiple Locations
                      MiriamEllis
                      MiriamEllis
                      0
                      10
                      345

                    • Can we listed URL on Website sitemap page which are blocked by Robots.txt
                      irvingw
                      irvingw
                      0
                      7
                      482

                    • Domain registered location - SEO
                      gfiorelli1
                      gfiorelli1
                      0
                      7
                      637

                    • Robots.txt file
                      Greenman
                      Greenman
                      0
                      3
                      652

                    • Multiple locations
                      cottamg
                      cottamg
                      0
                      3
                      905

                    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