Apache's .htaccess file is really powerful, but occasionally something of a dark
art. Here are some things that I have used over the years, that work (for me
anyway) along with hopefully detailed explanations of why they do what they do.
RewriteEngine
What's up with the inclusion of Options +FollowSymLinks?