Using .htaccess and mod_rewrite to not require file extensions in php pages
Hopefully a quick URL rewrite question for you all.

I've got a page on my site: http://www.sample.com/whatever.php

and i'd like to be able to navigate the site without typing `.php`

so http://www.sample.com/whatever would show the same thing.

I'd like this to work for any file in the root directory, so users could use the extension or not.

Any thoughts?
Using .htaccess and mod_rewrite to not require file extensions in php pages
===

Hopefully a quick URL rewrite question for you all.

I've got a page on my site: http://www.sample.com/whatever.php

and i'd like to be able to navigate the site without typing `.php`

so http://www.sample.com/whatever would show the same thing.

I'd like this to work for any file in the root directory, so users could use the extension or not.

Any thoughts?