I have a file that I want to redirect to a subdomain using mod_rewrite. For example, I would like to redirect the request for http://www.mydomain.com/xyz
to the subdomain xyz.example.com
I don't want to send a redirect to the browser though (so it doesn't know the page is different).
BTW. xyz
is a CNAME record, pointing to www.otherdomain.com.
Another example, just to clarify. If http://www.mydomain.com/xyz/something
is entered into the browser, I want Apache to return the contents of http://xyz.mydomain.com/something