CSS-Tricks has a useful snippet showing how to make exceptions to .htaccess password protection based on the requested URL.
Tag Archives: Snippets
Placing Snippets in a Functionality Plugin Instead of Theme
Dave Clements has a great suggestion for adding snippets to a WordPress site in a way that will preserve them between theme changes: create a simple functionality plugin.