httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <>
Subject Re: [users@httpd] URL Mapping or ReWriting Help
Date Fri, 17 Jun 2005 13:09:14 GMT
On 6/17/05, Andrew Mull <> wrote:
> Hello,
> Hope this can be done.
> What I am trying to figure out is how I can make a subdirectory of a
> site look like the document root for all of its files and
> subdirectories?
> For example:
> Say exists, and "" is a VirtualHost
> and "test" is a subdirectory of that VirtualHost's DocumentRoot.
> When entering that URL, I would like it to act as a separate site
> where if someone were to link to /images/whatever.gif or
> /anotherdirectory/test.html from any file in that directory it would
> actually access the /test/images or /test/anotherdirectory instead of
> /images and /anotherdirectory?

Because each request looks completely independent to apache, this is
not really possible.  There are various work-arounds, ranging in
complexity and effectiveness that I recently discussed on this list:

But as someone else said in the same thread, the best idea is probably
to fix your html pages.


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message