0

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?

2

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.

  • Perfect - I did this in the vhost definition. – DrStalker Mar 23 '10 at 0:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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