Apache: Redirect entire virtual host to a URL

Posted by DrStalker on Server Fault See other posts from Server Fault or by DrStalker
Published on 2010-03-19T03:25:58Z Indexed on 2010/03/19 3:31 UTC
Read the original article Hit count: 477

Filed under:
|

Centos 5.2, Apache 2.2.3

I want to configure Apache to redirect any URL under mail.mydomain.com to the single URL https://mail.google.com/a/mydomain.com

How can I set this up with Apache? I have

LoadModule rewrite_module modules/mod_rewrite.so

but I'm not sure how to actually use this and I can't find a really simple example; I assume I set up a new virtual host with some form of rewrite directive, but how is this done?

© Server Fault or respective owner

Related posts about apache

Related posts about redirect