Apache redirect

Jonathan Hutchins hutchins at opus1.com
Mon Aug 26 20:11:18 CDT 2002


---- Original Message -----
From: "Lucas Peet" <lpeet at eccod.com>

> Use the Apache rewrite module (mod_rewrite.so).  Here's how I redirect
from
> webmail.domain1.com to https://webmail.domain2.com

>      RewriteEngine On
>      RewriteRule /.* https://webmail.domain2.com/ [R]

> Just put the full path of the URL in your Rewrite rule.

Using Permanent instead also has the ability to cause web indexes to
automatically update the URL, and returns an appropriate message
(Permanently Redirected) to the browser, which can update cached references.




More information about the Kclug mailing list