.htaccess Generator

Generate common Apache .htaccess rules for redirects, rewrites, CORS, caching, security headers, and more

All processing happens in your browser. No data is uploaded.
Offline Ready

.htaccess Generator

Generate common Apache .htaccess rules for redirects, rewrites, CORS, caching, security headers, and more

🔒All processing happens in your browser. No data is uploaded.
Basic Options
Force HTTPS
Disable directory listing
No redirect
Redirect Rules
URL Rewrite Rules
CORS Headers
Enable CORS headers
Browser Caching
Enable browser caching
Security Headers
X-Frame-Options (SAMEORIGIN)
X-Content-Type-Options (nosniff)
X-XSS-Protection
Referrer-Policy
Strict-Transport-Security (HSTS)
Content-Security-Policy
Custom Error Pages
Generated .htaccess
Configure options above to generate .htaccess rules...