Re: [users@httpd] RedirectMatch Question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11/7/05, Marc Perkel <marc@xxxxxxxxxx> 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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux