(MP2-Apache2)
I have a fast growing number of virtual (non-existant) subdirectories under document root:
/apple
/foo
/grape
/bar
each one corresponds to a dynamic document.
Until now, I've just used:
Redirect permanent /apple http://www.example.com/content.cgi?content=apple
.... foo
Redirect permanent /grape
http://www.example.com/content.cgi?content=grape
.... bar
But I *really* need to start checking a database for the content and handle the redirect dynamically... (the content list is getting very long!).
Since this check happens at the document root, some directories exist as well as some files,
index.html, etc.
I've started testing a handler (configured at '/') that parses $r->uri and checks the object, doing a redirect accordingly, but this seems wasteful for every hit.
I've thought about using the handler for only 404...
How can this most effeciently be handled using the virtual name?
Thanks in advance?
- Transhandler? Redirect permanent? Will Fould
- Re: Transhandler? Redirect permanent? Jonathan
- Re: Transhandler? Redirect permanent? Tyler MacDonald