httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <>
Subject Re: [users@httpd] RedirectMatch Question
Date Mon, 07 Nov 2005 19:54:58 GMT
On 11/7/05, Marc Perkel <> wrote:

>  What I really want to do is this:
>  http://www.(.*)/mailman/(.*) --> http://mailmam.$1/$2
>  What I want to do is preserve the host part after the www and substiture
> mailman for www and lose the mailman on the end. I should have been clearer.

RewriteEngine On
RewiteCond %{HTTP_HOST}  ^www\.(.*)$ [NC]
RewriteRule ^/mailman/$1 http://mailman.%1/$1 [R]


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message