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
-
How can I write unique and seductive product descriptions about multiple, very similar products?
We are an eCommerce store who sell personalised phone cases, macbook covers, mugs and the like. Our target market is primarily 16-25 and female. We're in the process of redesigning our website www.mrnutcase.com and we desperately need some more enticing product descriptions before the redesign goes live. The problem is that most of our products are exactly the same. For example iPhone 5 case, iPhone 5S Case etc. At the moment our product descriptions are almost the same, but written in a slightly different way. Not only is this dangerous in terms of duplicate content, but it's also extremely boring for the user. With our users being young and female, writing about boring technical specifications isn't going to cut it with the crowd. Obviously, i want each of our pages to rank in Google so I don't want to NoIndex or canonicalize any pages or anything. How can I write unique and enticing product descriptions for very similar products? Would appreciate any ideas! Thanks, Danny
On-Page Optimization | | DannyNutcase0 -
Ajax tabs and seo and sitemap
I am in the process of simplifying my website so that there are tabs in each section which load dynamically by ajax all of the subpages.Each subpage has funny url with a hashtag.
On-Page Optimization | | paddyaran
Does this mean each page does not have its title , or metatags?, Is this bad for seo?. Many of these pages have only a paragraph of text. I also am making a sitemap which links to the pages as a normal page. Would this mean I have a duplicate content issue with seo?.0 -
Subdomain SERPS are different from the root domain SERPS
I am fairly new to SEO so bare with me. I created two campaigns within Moz, one tracking the sudomain www.mysite.com and another tracking just the root domain mysite.com. When I look at the keyword rankings I get different results from Google, Bing and Yahoo. For instance, the root domain shows rankings in Bing and Yahoo, but "Not in top 50" for Google. For my subdomain, it is reversed. I see rankings for Google, but "not in top 50' for Bing and Yahoo. What can I do to solve this issue? I am using canonical tags, but it is a domain redirect issue? Thanks in advance
On-Page Optimization | | BouldersInn0 -
Can you use multiple keywords for on page for ranking?
I understand using a keyword (or phrase) and correctly building that into the site structure (URL, Title Tag, body, etc). So, this question is going to be elementary, but I am starting to question myself as I write content. I have a client, for example, that has a new site and a page for Chocolate cakes. Now the other pages they built out are for Cheesecakes, Cupcakes, etc. So we optimized the Chocolate cakes page with our keyword throughout (Getting an A+ on page content grade). But now they are asking me why they can't be found for chocolate eclairs, chocolate fudge cake, devils chocolate cake, double chocolate cake, etc. My first quick answer is that they should build more pages. But am I doing this wrong?
On-Page Optimization | | cschwartzel0 -
Wordpress sitemap url problem causing WMT errors
The following types of links are appearing in my webmaster tools crawl errors report under 'other'. I've noticed they are in my sitemaps ( I run wordpress and use a plugin called Google XML sitemaps). How do I get rid of this error? http://www.musicliveuk.com/bands/postname%/
On-Page Optimization | | SamCUK0 -
Changing domain name
Hello, we have 10 websites in same niche, and plan to build one strong site by making a 301 redirect from all sites to one. We think to do redirect each site to subfolder like this: www.newdomain.com/site1 www.newdomain.com/site2 www.newdomain.com/site3 www.newdomain.com/site4 www.newdomain.com/site5 www.newdomain.com/site6 www.newdomain.com/site7 www.newdomain.com/site8 www.newdomain.com/site9 www.newdomain.com/site10 And in root domain place unique content updated daily. Is this would work? Or this is bad idea? Looking to hear from a qualified technicians advice. Thanks in advance!
On-Page Optimization | | bele0 -
Is it ok to point internal links to index.html home page rather than full www
I thought I saw this somewhere on SEOmoz before but I was so busy by the time I got around to work on my SEO on my site, I realized I have this happening and can't recall if it is a problem which takes away from my ranking. If my www.website.com is ranking well but I have internal menu links pointing to www.website.com/index.html instead of www.website.com will that take away from my www.website.com rankings? Should I change all my menu links that point to /index.html to the full website url path www.website.com ?
On-Page Optimization | | Twinbytes0 -
Homepage Keywords for a Client with Multiple Services
We have a local client who services are very broad and there is no one service, i.e. keyword or keyword phrase, that covers all that they do. This is making it very challenging to select keywords to optimize the homepage for. Basically they do everything from engineering, surveying, planning, environmental, etc. We were thinking we would focus mainly on their most important service which is engineering and then use the other services as supporting phrases. However, this feels very diluted and there will be pages on the site for each of these services where the keywords will be targeted. Any thoughts or recommendations for this type of situation?
On-Page Optimization | | DragonSearch0