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?

link|improve this question

feedback

1 Answer

up vote 2 down vote accepted

put a .htaccess in the document root and then put this in it :

RewriteEngine on
RewriteRule $ https://mail.google.com/a/mydomain.com [L]

or you can do the above in the VHost definition.

link|improve this answer
Perfect - I did this in the vhost definition. – DrStalker Mar 23 '10 at 0:48
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.