I have a file that I want to redirect to a subdomain using mod_rewrite. For example, I would like to redirect a request for http://www.mydomain.com/xyzto a subdomainxyz.example.com
I do not want to send the redirect to the browser (so that it does not know that the page is different).
BTW. xyzis a CNAME record pointing towww.otherdomain.com.
Another example, just to clarify. If entered into the browser http://www.mydomain.com/xyz/something, I want Apache to return the contentshttp://xyz.mydomain.com/something
Radoslaw
source
share