Because I'm an Apache n00b, only because I've never attempted to setup my own server, I'm in need of some help. The guy who hosts my website will modify the Apache configuration to whatever I ask, but he needs to know the configuration entries because he doesn't normally do this himself.
What I'm looking for is the entries I would need in the Apache configuration for my website, so that people can go to http://www.mydomain.com/Non_Existant_Directory/Non_Existant_Sub_Directory/
and be redirected through a PHP file I will write that will perform an action based on the value of the parsed URL. We've tried just changing the DocumentRoot field to /absolute/path/nav.php, and this works to some extent, but of course we run into the problem of directories and files that are being directed to this file that we don't want to be (such as images).
I've been checking around the internet, and the general idea that I surmised is to use mod_rewrite in some way with the rewrite engine to perform this. However, since I don't have access to my own Apache server, I can't experiment to figure out all the ins-n-outs of the configuration design I need. So, I'm hoping all ye l337 sysadmins can help me out here.
What I need in the Apache configuration:
o Server takes non-existant directories (such as mentioned above) and sends them through nav.php.
o If the above isn't possible (mapping non-existant), a way to include certain fake directories (such as /Fake_Dir/)
o Exclude certain directories (such as /images/)
o I don't want _everything_ parsed through the nav.php file, only the fake directories I specified.
o ...oh and maybe some tips on how to use your configuration. LoL!
Directories that need to be excluded from rewrite and able to be viewed normally:
Some directories that need to be included in the rewrite:
Examples of what I'm looking to do:
l ( will run through nav.php from where I can parse the URI and use ID #123456 )
I think that's all I need. Although I'm not totally sure at the moment. Thanks for the help, and I appreciate whatever input you can provide.