Hey there, I'm hoping someone can whip me up a quick rewrite, I'd REALLY appreciate it.

I simply need to drop the .php extension on URLs and do a permanent redirect so that the browser's address bar updates and search engines don't complain, and also make URLs typed in capital letters revert to smaller case instead of throwing 404s.

Thanks a million if anyone can help, I've done some searching but the reg-ex is killing me.