Okay, I'll try my best to describe what I'm doing here:
I want to have two identical filesystem arrangements on my host: one at /, which is root, and one at /libraries/, which contains PHP libraries.
When a user requests a page (say, http://blah.com/foo/bar.php), I want this request to be redirected to /process.php or /adminproc.php (if the file starts with admin_). /process.php should do initialization, then look for /libraries/foo/bar.php. If that file is there, then it should included in /process.php at that point. If not, then /process.php should load up /errors/404.php .
Follow me so far? Now, I understand how to do the PHP processing; the part I can't figure out is how to redirect EVERY request in / to /process.php . Can anyone help me out here? I believe mod_rewrite is the answer, but I don't fully understand how to use it.