Bootstrapping PHP /required/ directory in nginx
===

I have a simple setup in nginx, and I'm trying to figure out a good way to bootstrap my files so that I don't have to require anything in my `/required/` directory.

It has a lot of stuff: `config.php`; `util.php`; `database.php`, etc.

I have a few questions:

 - Would this require a lot of rewrite commands via the nginx for the sake of clean urls? 
 - Is it possible to get rid of query arguments? If so, how?*
 - So far I have the bootsrap loading in `index.php`, and it works, but ONLY if there exists a redirect in `index.php`, which can lead to some ugly urls.

*
I'd like to be able to do something along the lines of `http://example.com/dir/file` without specifying anything which states the site is written in php.

What's the best way to go about this?

