I was looking for a simple solution these days to implement nice urls. I searched and found lots of tutorials on this but none of them where simple enough for what I wanted to implement: the simplest nice URLs possible, so I started from scratch and with guide the official mod_rewrite reference and with lots of trial and error I came up with the following solution.
Prerequisites: access to the .htaccess file, mod_rewrite enabled and php supported on your server.