Forum Moderators: goodroi
Tks in advance :-)
JohnP
You have two choices. The first is to cloak your robots.txt and allow or disallow dependent on the http_host header. It's not impossible to do, but it's hard work.
The second and much easier choice is to use mod_rewrite to send a 301 Permanent Redirect for any request for a domain which is not the main one. In that way, your content only appears under one domain, and so can only be indexed once.
> The second and much easier choice is to use mod_rewrite to send a 301 Permanent Redirect for any request for a domain which is not the main one. In that way, your content only appears under one domain, and so can only be indexed once.
OK - so I get mod_rewrite (somehow - never done that before) and it sends a redirect if a .net or .org domain is used. I presume this allows human browsers to see the site and robots to be told that it's not available?
Slainte.