UnQTools
Network, Runs in your browser

.htaccess Generator

Generate Apache .htaccess rules: redirects (301/302), URL rewrites, auth, IP allow/deny, custom error pages, security headers, HTTPS force, www force, and 10+ extras. 100% private.

100% Private Works Offline Instant

About .htaccess Generator

Generate Apache .htaccess rules: redirects (301/302), URL rewrites, auth, IP allow/deny, custom error pages, security headers, HTTPS force, www force, and 10+ extras. 100% private. Everything runs locally in your browser — your data never leaves your device.

How to use

  1. Enter your input in the tool above.
  2. Adjust any options to your preference.
  3. Use the Copy or Download buttons to save the result.
  4. Everything happens locally — your data never leaves your browser.

FAQ

What can I generate?

301/302 redirects (single + bulk), URL rewrites (mod_rewrite), HTTP Basic Auth (with .htpasswd), IP allow/deny, custom error pages (404, 500, etc.), security headers (HSTS, X-Frame-Options, CSP), force HTTPS, force/prevent www, hotlink protection, gzip compression, browser cache rules, directory listing control.

What extras does this tool have?

Extras: (1) 301 permanent redirect, (2) 302 temporary redirect, (3) Bulk redirect (paste URL pairs), (4) mod_rewrite with regex, (5) HTTP Basic Auth + .htpasswd generator, (6) IP allowlist + denylist, (7) Custom error pages (400-503), (8) Security headers (HSTS, X-Frame, X-Content-Type, CSP, Referrer-Policy), (9) Force HTTPS, (10) Force/prevent www, (11) Hotlink protection, (12) Gzip compression, (13) Browser cache rules, (14) Copy individual sections, (15) Download as .htaccess file.

Search tools and actions

Search across all 645 tools, categories, and quick actions.