🔒

Enter Code SPUNK to Unlock

This is an exclusive premium tool. Enter the referral code to get instant access.

Get the code at spunk.codes/exclusive/
⚡ EXCLUSIVE TOOL

.htaccess Generator

Visual builder for Apache .htaccess files. Configure redirects, security headers, browser caching, HTTPS enforcement, and more with one-click presets.

⚡ Quick Presets

📰
WordPress
Permalinks + security + caching
SPA / React
Fallback to index.html
🛡
Security Hardened
All security headers + protections
🚀
Performance
Compression + caching + ETags

🛠 Configuration Options

Force HTTPS
Redirect all HTTP to HTTPS
Force www
Redirect non-www to www
Remove www
Redirect www to non-www
GZIP Compression
Compress text, HTML, CSS, JS
Browser Caching
Cache static assets (images, CSS, JS)
Remove ETags
Disable ETag headers for performance
XSS Protection
X-XSS-Protection header
MIME Sniffing Protection
X-Content-Type-Options: nosniff
Clickjacking Protection
X-Frame-Options: SAMEORIGIN
HSTS Header
Strict-Transport-Security
Disable Directory Listing
Prevent browsing folder contents
Block Hidden Files
Block access to .git, .env, etc.
Remove Trailing Slash
Remove trailing slashes from URLs
Custom Error Pages
404, 403, 500 error pages
Referrer Policy
strict-origin-when-cross-origin

🔄 Custom Redirects

📄 Generated .htaccess

# Enable your options above to generate .htaccess rules

More Exclusive Automation Tools

Sitemap generators, Markdown editors, unit converters, and more -- all free with code SPUNK.

Browse All Exclusive Tools