Welcome to WebmasterWorld Guest from 188.8.131.52
I have a site set up at Powweb, but the morons there set everyone's DNS records up to allow "anything" - ie. the DNS CNAME record simply allows "*" ... even if you don't want it. Given that a simple request to them to change it to "www" goes unfulfilled, I thought I could probably handle it within an .htaccess file.
Since the DNS record is not likely to be changed any time soon, then I figure that I should be able to get an .htaccess to allow the "www".domain.com (which is really just a sub-domain) - and any page underneath it - to do a re-write to domain.com (such that a 200 http code is issued), but do a redirect on anything else (ie. test.domain.com etc, etc). The redirect would go to the main page at domain.com, but at least a http error code (301?) would get issued such that it cannot be spidered...
Hope that makes sense ... any help appreciated.