.htaccess Generator
Common Apache .htaccess rules, ready to use.
Redirects & HTTPS
Custom error pages
Caching & compression
Access & blocking
Password protection
.htpasswd line generator (bcrypt)
Directory & security
This free .htaccess generator assembles the Apache directives most sites need — force HTTPS, force www or non-www, 301 redirects, custom error pages for 400/401/403/404/500, Gzip compression, browser caching, IP blocking, hotlink protection, bad-bot blocking, password protection with a bcrypt.htpasswd line generator, directory listing controls and security headers — into one ready-to-use.htaccess file. Tick the rules you need, fill in the details, then copy or download the result to your site root.
Related tools
JSON Formatter
Format, beautify & validate JSON data.
Base64 Encoder / Decoder
Encode and decode Base64 text instantly.
URL Encoder / Decoder
Percent-encode and decode URLs safely.
Regex Tester
Test regular expressions with live match highlighting.
JWT Decoder
Decode JWT header and payload claims.
Timestamp Converter
Convert Unix timestamps to dates and back.