Overhaul default .htaccess file, closes #1336