Literally everything I ever wanted to know about HTAccess:

Stupid htaccess Tricks – Perishable Press