Free Tool

.htaccess Generator

Build common Apache rules — copy or download your .htaccess file.

Questions answered

Frequently asked questions

Everything you might be wondering about the .htaccess Generator.

What rules can I generate?
Force HTTPS, www/non-www redirects, custom 404 pages, gzip compression, browser caching, and directory listing protection — the most commonly needed Apache rules.
Where do I put the .htaccess file?
In your site's root directory (or a subfolder for scoped rules). Always back up your existing .htaccess before replacing it.
Is it free and private?
Yes — free, no sign-up, and everything runs in your browser.