httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hank <hes...@gmail.com>
Subject [users@httpd] silent URL redirect/cloak with mod_rewrite
Date Sun, 20 Apr 2008 23:42:34 GMT
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 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