Apache URL rewriting (directory fallthrough)

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
User avatar
nielsene
DevNet Resident
Posts: 1834
Joined: Fri Aug 16, 2002 8:57 am
Location: Watertown, MA

Apache URL rewriting (directory fallthrough)

Post by nielsene »

Does anyone know about a good tutorial for using apache directives to do the following:

"Map" a virtual filesystem over the real one. I know I read a tutorial somewhere on this, I thought it was either ALA or phpBuilder, but I can't seem to locate it. Specifically, allow URLs of the form:
http://host.domain/site-section/sub-sec ... th/webpage
to be handled by a script named sub-section in the site-section directory, with the remainder of the URL availble for parsing within that script?

I beleive it wasn't a simple mod-rewriting trick, but some sort of configuration option for Apache to "backchain" through the directories before issuing the 404. I thought the article suggested that this was more efficient than the straight rewriting approach and is a little more elegant.
Post Reply