Overhaul default .htaccess file, closes #1239