Forum Moderators: goodroi
It took me about 1/2 hour of digging on the web to find out how to do this properly in Apache .htaccess (with mod_rewrite enabled), so I decided it would be helpful if I just posted the code that I finally got worked:
RewriteCond %{HTTP_HOST} ^.*myspanishsite\.com [NC]
RewriteRule ^robots.txt$ /robots-es.txt [L,NC]
The main point on which I was getting stuck was that I was putting the full URL in the RewriteRule. Then, I discovered you can't do that or else it will be a 301 redirect instead of a silent redirect.