[users@httpd] pretty simple mod-rewrite question

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

 



I have a rewrite working well so for one virtual domain:

Convert:  http://www.AAsite.com/pf_dir/index.html
To:          http://www.AAsite.info/AAforums/pf_dir/index.html

RewriteEngine on
RewriteRule ^/pf(.*)$            http://www.AAsite.info/AAforums/pf$1 [L]

What I'd like to do is enhance it so it does the following:

Convert:  http://www.AAsite.com/pf_dir/index.html
To:  http://www.AAsite.info/AAforums/pf_dir/index.html
..AND:
Convert:  http://www.BBsite.com/pf_dir/index.html
To:  http://www.AAsite.info/BBforums/pf_dir/index.html

Both incoming URL sites are aliases in the same virtual server, but
the target URL domain name stays the same (AAsite), only the top level
directory changes "/AA" or "/BB".

Thanks in advance.

-- 

-Hank

---------------------------------------------------------------------
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