httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <christian.fol...@post.ch>
Subject AW: [users@httpd] silent URL redirect/cloak with mod_rewrite
Date Mon, 21 Apr 2008 06:20:22 GMT
Hey Hank,
 
What do you mean by "silent redirect"?
 
Christian

________________________________

Von: Hank [mailto:heskin@gmail.com] 
Gesendet: Montag, 21. April 2008 01:43
An: users@httpd.apache.org
Betreff: [users@httpd] silent URL redirect/cloak with mod_rewrite


Hello All,
 
I've tried about 100 combinations and searched google over and over, but
I can't find nor figure out how to do this simple task.
 
I have one webserver with sites at:
 
/home/user/public_html/  ( http://basedomain.com
<http://basedomain.com/>  site points here) 
/home/user/public_html/siteA
/home/user/public_html/siteB
 
I have domain names like this:  http://domainA.com <http://domaina.com/>
and http://domainB.com <http://domainb.com/>  
 
I want to *silently* redirect http://domainA.com <http://domaina.com/>
to  /home/user/public_html/siteA 
and http://domainB.com <http://domainb.com/>  to
/home/user/public_html/siteB
 
Now keep in mind the literals "domainA" is not the same as the directory
name "siteA", and same for domainA/siteA.
 
I have found several ways to non-silently redirect http://domainA.com
<http://domaina.com/>  to http://basedomain/siteA, but that's not good
enough.  It needs to be a silent re-direct. 
 
I realize I could do this with virtual domains if I had access to
httpd.conf, but I don't on this server.
 
Thanks,
-Hank

Mime
View raw message