Redirect the robots.txt in a multiple Domain used server path
In Order to use multiple domains on the same server path one solution is, to modify the apache mod_rewrite module and the .htaccess. Add the following code to your .htaccess:
1 2 3 4 5 | RewriteCond %{HTTP_HOST} domainA.com RewriteRule ^robots.txt$ /robots-domainA.txt [L] RewriteCond %{HTTP_HOST} domainB.com RewriteRule ^robots.txt$ /robots-domainB.txt [L] |