Toggle the Apache rules you need — force HTTPS, www or non-www, caching, compression, redirects and more — and get a clean, copy-ready .htaccess file. Everything is assembled live and runs entirely in your browser.
# All rules are off — enable one above.
Place this file in your site's root directory. Always keep a backup of your existing .htaccess before replacing it. Rules relying on mod_rewrite, mod_deflate or mod_expires require those Apache modules to be enabled on your server.