How do we handle sitemaps in robots.txt when multiple domains point to same physical location?
-
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.xmlin robots.txt, would that result in some cross submission error?
-
Thanks for your help René!
-
yup
-
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.
-
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
-
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.
-
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)
-
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.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Schema LocalBusiness for multiple store locations
Hello, I want to add LocalBusiness mark up to our store pages. I recently read this article https://moz.com/blog/structured-data-for-seo-2 One piece of advice I wanted to confirm is this section: It might seem counter-intuitive, but organization and LocalBusiness markup should only be used on the pages which are actually about your business (e.g. homepage, about page, and/or contact page). I am working on an e-commerce site that has multiple stores and a store page for each. Currently there is Organization Mark Up (with the head office contact information) on every single page. Am I right in saying that we should remove the Organization Mark Up from every page except the homepage, then add LocalBusiness mark up to each store page with the relevant contact information for each store? Many thanks in advance.
On-Page Optimization | | kbm30 -
My main domain is missing in google, subdomain appears instead.
I have two SEO optimised pages in my website targeting different keywords www.example.com <-- main selling page (Pocket Guitar | Guitar Instruments)
On-Page Optimization | | kevinbp
www.example.com/index/ <-- 2nd selling page (Guitar Australia | Guitar Perth) Q: At first my website "www.example.com" is ranking on google first page. Suddenly it disappears and the link "www.example.com/index/" appears instead. No matter what i search, "Pocket Guitar | Guitar Instruments | Guitar Australia | Guitar Perth", the link www.example.com/index/ appears on the front page instead of www.example.com. What is happening to my main domain? Should i be worried?0 -
Domain authority decreased but rankings increased
Hello! I'm a bit confused. It seems the industry as a whole that my company operates in has taken a bash from the update a few days ago as all of the competitiors have taken a hit to their domain authority. What is confusing is that my websites rankings have increased as well. There has been a change to the robots.txt file in an effort to stop being crawled by SEMRush which is messing with my site stats but that is the only change. Thanks in advance, Ben
On-Page Optimization | | Ben-Cleaver1 -
.com vs .co.uk domain
I have a client who has a site live at example**.co.uk** and would like to rank for the term "example". But example**.com** is owned by another company who offers a different product and service and has been live since 2003. I know that I can make example**.co.uk** rank for keywords related to their service but I think it's going to be a struggle to get them to rank for the brand term "example" as the .com site already owns Page 1 with their domain name, Facebook page, Wiki page etc etc. The only variation is that example**.com** is a US based company and my client want to ranks in the UK only. What are the chances I can out rank example**.com** for the brand term on www.google.co.uk if example**.com** currently owns Page 1 on google**.co.uk**?
On-Page Optimization | | Marketing_Today0 -
Sitemap.xml parameters
Hello, I confused about the parameters when create sitemap.xml. I don'n know how to use these parameters efficiently. Some parameters are:
On-Page Optimization | | JohnHuynh
- **Page changing frequency: **what is a good value? Can I choose "None"?
- **Last modified date: **what is a good value? Can I choose "Don’t specify"?
- **Page priority: **what is a good value? Can I choose "Don’t specify"? Thanks,0 -
Two different domains with the same content
Hi all, I just figured out that my client has two different domains with the same content, so the site will be penalized by Google: www.piensapiensa.es www.piensapiensa.com Should I do a 301 redirection from one domain to the other one using the htaccess file as usual chosing one of them as canonical? redirect 301 piensapiensa.es www.piensapiensa.com? Thanks.
On-Page Optimization | | juanmiguelcr0 -
Weighing costs & benefits for domain name change.
I've got a site that is under consideration for a domain change, however I have plenty of concerns about our particular situation. I'd love to explain my scenario and then get some feedback! The domain in question is beverlys.com and has been up and running since 1996 (almost 16 years), so it has advantages in that it's a long standing trusted domain. For the majority of that time however, the site was mostly a simple static informational site to accommodate a brick and mortar business. Then starting in 2009 the site underwent the change to become an e-commerce site. Since then we have been working to compete with other sites in the same industry and attempting to rank well in organic results. In particular our business sells fabric, so "fabric" is one keyword we measure in various way to get an idea where we stand with the competition. Over time we have had ups and downs while ranking for "fabric", specifically. At our peak we ranked 16th in Google in September 2011, and 18th as recent as January 2012. However since that time we have fallen off the map in Google's results. Currently we are around the 100th result! Though in Yahoo! and Bing we continue to show strongly with organic rankings hovering between 15-20. I can only theorize that something in the last few rounds of Google's algorithm updates has punished us and thus far have not been able to identity the issue or find any resolution. So, in response, one of the options on the table is to use a new domain name that specifically incorporates the keyword that is important to us. Unfortunately our current domain does not use "fabric" so we would use something like beverly-fabrics.com or what-have you. There is so much potential for disaster in switching domain names that I'm having a hard time considering this as a viable option. But at this point I don't want to close any doors. We want to have the best chance at long term success and if a domain name change would help in that we would do it. I'd love to hear anyone's opinions, recommendations or advice about our situation!
On-Page Optimization | | dickslee230 -
Blog On Domain Or Off?
Hi, Which do you think is more powerful ito SEO rankings for my domain? Should I make the blog part of my domain or should I create a blog on a seperate domain? Zane
On-Page Optimization | | Springboks0