Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

We are running a site with multiple languages hosted in a single environment on IIS7. For example,

  • oursite.com - english
  • oursite.de - german
  • oursite.es - spanish

This is a single-host environment. All of these sites are in the same application space on the same physical machine.

I need to do cross-submission of sitemaps via robots.txt. Looking at the sitemap.org guidelines for this suggest this is possible, but the example indicates different physical machines.

Will the following entries in oursite.com/robots.txt work?

http://www.oursite.com/sitemap-oursite-de.xml
http://www.oursite.com/sitemap-oursite-es.xml
share|improve this question

1 Answer 1

I'm not sure if it'll work this way (my guess is it won't), but I think your best bet here is to use some sort of rewrite rule to identify which domain the site is running on and display the appropriate robots.txt for it.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.