.htaccess Generator

Build an Apache .htaccess file with checkboxes: HTTPS redirect, www/non-www, custom 404, cache rules, CORS, and more.

About .htaccess Generator

Apache's .htaccess file controls per-directory configuration. Rules are applied in order by mod_rewrite. Place the file in your web root. Test changes in staging before deploying to production — a syntax error will return a 500 error for all requests.