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
-
Snippet showing as domain name with apostrophe, instead of page title when searching for the domain name.
Hi, We have an issue with one of our websites, with the snippet dispaying differently in Google serps when searching for the domain or the website name rather than a search term. When searching for a search term, the page title shows as expected, but when searching for the site by the domain name either with or without the tld, it shows the snippet as the domain name with an apostrophe at the end. Domain is subli.co.uk Thanks in advance for any advice!
On-Page Optimization | | K3v1n0 -
Ranking over someone else who has your branded domain name
Hello! I have a client who has been in business for a long time, but was very late to the game online. As a result, the branded domain for his business (for explanation purposes I'll call it "Houston Tan"*) was already taken when he decided he needed a website, however it was not being used. He approached the company that owned "houstontan.com" and they refused to sell it to him. Not only that, they turned around and opened a company and developed the website using his trademarked company name as one word instead of two, "HoustonTan." It was brought to court and the judge determined that since they created a new name by combining the two words, there was nothing that he could do. Still having to create a website for his company, he chose the domain "HoustonSunTan.com." Not sure who was advising him on that one. So now he has a domain name with only a partial match to his company name. As you would imagine, when you search Houston Tan, HoustonTan.com is number 1, 2 & 3, and HoustonSunTan.com is #4. My question is, do you think it is even possible for his company to overtake the top spot of Google? Or have you ever come across a situation like this and if so what worked for you? FYI: Even though it says Houston, the company is a global company in over 500 cities (with one 800 number unfortunately), so local SEO strategies wouldn't necessarily apply. *Names are made up to protect both parties 🙂
On-Page Optimization | | American.Made0 -
Multiple domains
I have a client, (for example Henry Jewelers) who likes to advertise their site as www.henry.com, but their main site resides on HenryJewelers.com. If www.henry.com has a permanent redirect to henryjewelers.com, are the two sites impacted negatively from a SEO standpoint?
On-Page Optimization | | BrettMackrell0 -
Can a country level domain perform well in international SEO if all the targeted keywords are related to that country domain?
Hi fellow Mozers, I am doing international SEO on Google US, UK, UAE and Saudi Arabia. All my targeted keywords have my country name in it, for example, export companies in France, best import companies in France and so on. Finally, my website has a country level domain i.e. www.xyz.co.fr _Hence, my questions are: _ 1. Is it good have a country level domain in this case or should I go TLDs? 2. Should my Google Plus page be a local business page or company page from SEO perspective? I have more than 10000 users who have +1 my website. _Thanks in advance. _
On-Page Optimization | | Abhi81870 -
Two sites, one with a ccTLD domain, the other with TLD domain, same content
Hi there! I have a site which can be accessed with two different domains: one ccTLD for Spain: www.piensapiensa.es one TLD www.piensapiensa.com Should I take care of something regarding SEO? I have also a redirection from www.piensapiensa.com to piensapiensa.com. I have set up them in webmasters tools individually, with the same sitemap obviously. Thanks in advanced.
On-Page Optimization | | juanmiguelcr0 -
Similar content multiple pages
I have run in to a situation on an e-commerce store where products from a certain manufacturer require a fairly large chunk of corporate information to be posted underneath the product description: I.E. Trademark information, etc. This information happens to be close to half the size of the product description information. Am I at risk of getting hit negatively for this portion of text duplicated across multiple products? I was considering putting a link to a separate informational page with this information but am not sure if it even matters? What are your recommendations brilliant SEO'erz?
On-Page Optimization | | wishmedia0 -
Will Google handle "this not that" pages differently?
If you create pages about "try keyword1 not keyword2" will there be any barriers to getting the pages ranked for keyword2? Example: You have furnished rental units in a small town, and you offer nightly/weekly rentals. You want to rank for "town hotel" since you offer the same service as a hotel. Since you're not really a hotel, you create a page called "Better than a hotel: Town nightly rental units". Anyone know if Google has an algorithm to detect this (they would have to detect the meaning of the words you were using and know that you were promoting something other than a hotel) and determine you're not really relevant to "town hotel" and not rank you well? I think they probably do not, as I've seen things like Google Adsense Alternatives articles ranking well for the term Google Adsense, or Boycott Godaddy sites ranking well for the term godaddy. But I would like to hear any evidence or facts others know of.
On-Page Optimization | | AdamThompson0 -
Forcing keywords into domain structure
Hi there, Over the last few years, I've seen people structuring their site so that their main content is all housed in a folder named after the site's primary keywords. For example, if I had some content about home insurance, normally naming conventions state that I might put the content at a URL such as: www.mydomain.com/home-insurance However, some sites, may change this structure to include their main keyword again in the URL string: www.mydomain.com/insurance/home-insurance The folder 'insurance' would normally hold the site's Sitemap to increase internal linking strategy too. I'd be really interested to hear whether anyone has seen any serious benefits from re-structuring their site in this way? What are your thoughts on this? Thanks,
On-Page Optimization | | theshortstack0