Apache mod_rewrite redirect any request on domain name to another domain

Posted by consolibyte on Server Fault See other posts from Server Fault or by consolibyte
Published on 2010-04-02T14:20:45Z Indexed on 2010/04/02 14:23 UTC
Read the original article Hit count: 278

Filed under:
|

How can I use mod_rewrite on Apache to direct any request for any page in a particular VirtualHost to another domain? i.e. something like:

<VirtualHost whatever.com:80>
Redirect * to http://www.some-other-domain.com/some-page.html
</VirtualHost>

© Server Fault or respective owner

Related posts about apache

Related posts about mod-rewrite