Forum Moderators: coopster
RewriteEngine On
RewriteCond %{HTTP_HOST} domain\.com$
RewriteRule ^robots\.txt$ /robots/domain.com.txt [L]
RewriteCond %{HTTP_HOST} domain\.co\.uk$
RewriteRule ^robots\.txt$ /robots/domain.co.uk.txt [L]
RewriteRule ^robots\.txt$ /robots/domain.co.uk.txt
Although these are internal rewrites.
There is no redirection rule set for www/non-www in .htaccess.
^.*? what appears to the user as two separate sites
Your problem is probably the relative path substitution in the RewriteRule. See this thread in the Apache forum:
There is no redirection rule set for www/non-www in .htaccess.
That shouldn't have anything to do with the problem...
what appears to the user as two separate sites
... but still not working.