httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jsl...@gmail.com>
Subject Re: [users@httpd] URL Mapping or ReWriting Help
Date Fri, 17 Jun 2005 13:09:14 GMT
On 6/17/05, Andrew Mull <mull@tower-communications.com> 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 www.domain.com/test exists, and "www.domain.com" 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:
http://mail-archives.apache.org/mod_mbox/httpd-users/200506.mbox/%3ce498c16605060707316a8c14c@mail.gmail.com%3e

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

Joshua.

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