Heres my ultimate list of Apache .htaccess code snippets and examples that I use all the time.
I tried to keep them extremely minimalistic and to the point. The focus here is not to explain Apache .htaccess or httpd.conf, this is a list of best-practice .htaccess code snippets for specific functions.