https://github.com/phanan/htaccess/blob/master/README.md
A collection of useful .htaccess snippets, all in one place. I decided to create this repo after getting so tired (and bored) with Googling everytime there’s a need of forcing www for my new website.
I sent this straight to two of the engineers supporting our apps at work.