httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jsl...@gmail.com>
Subject Re: [users@httpd] RedirectMatch Question
Date Mon, 07 Nov 2005 19:54:58 GMT
On 11/7/05, Marc Perkel <marc@perkel.com> 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]

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message