Developer

.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