โš™๏ธ .htaccess Generator

Apache configuration made easy.

๐Ÿ”’ HTTPS & WWW

Force HTTPS
Redirect all HTTP to HTTPS
Force WWW
Redirect non-www to www
Force non-WWW
Redirect www to non-www

โ†ช๏ธ Redirects

Add 301 (permanent) or 302 (temporary) redirects.

๐Ÿ›ก๏ธ Security Headers

X-Frame-Options
Prevent clickjacking
X-Content-Type-Options
Prevent MIME sniffing
X-XSS-Protection
Enable XSS filter
Referrer-Policy
Control referrer info

โšก Performance

Enable Gzip
Compress text files
Browser Caching
Cache static files

๐Ÿšซ Block Access

Block .htaccess
Deny access to config files
Block .git
Deny access to .git folder
Block .env
Deny access to .env file

๐Ÿ“„ Custom Error Pages

Set custom pages for HTTP errors.

๐Ÿ“„ .htaccess

C Copy D Download T Theme