tools ▸ .htaccess generator
Tick what you need — HTTPS, www, redirects, compression, caching, security headers, hotlink and file protection — and copy a clean, commented .htaccess.
runs 100% in your browser — nothing is uploaded or stored
.htaccess generator ▸ explained
Generate Apache/LiteSpeed .htaccess rules for HTTPS, www, redirects, caching and security.
LiteSpeed cloud hostingForce one version of your site (https + www or non-www) so search engines do not split ranking signals.
Expires and Cache-Control rules let browsers keep images, CSS and JS for days instead of re-downloading.
Block directory listing, protect .env and wp-config.php, and add security headers.
related ▸ more free tools
faq ▸ before you buy