Tools › .htaccess Generator

.htaccess Generator

Make safe .htaccess code for HTTPS, www, 301 redirects, security headers and blocking files.

Privacy: this tool runs in your browser. We do not receive what you type or paste. DNS lookups, where used, go from your browser to the public DNS services of Cloudflare and Google. Results are guidance, not a guarantee: always back up before you change anything. See our Terms.

Related guides