Tools/.htaccess Generator
⚙️

.htaccess Generator

Generate Apache .htaccess rules for HTTPS redirection, GZIP compression, browser caching, and security headers.

Quick Presets

Domain & HTTPS

Force HTTPS
Redirect all HTTP traffic to secure HTTPS

Security

Prevent Directory Listing
Stop visitors from browsing your folders (Options -Indexes)
Protect Sensitive Files
Block access to .env, .git, and .log files
Enable HSTS
Strict Transport Security header

Performance

Enable Gzip Compression
Compress text/html/css/js files to speed up loading
Enable Browser Caching
Tell browsers to cache static assets
URL Redirects
No redirects configured.