httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hank <hes...@gmail.com>
Subject [users@httpd] pretty simple mod-rewrite question
Date Fri, 19 Aug 2005 22:24:02 GMT
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@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