Generate .htaccess files visually — no Apache expertise needed. Toggle sections, add redirect rules, configure security headers, and download a ready-to-use file in seconds.
Presets:
Redirects
301 / 302
▼
Default type
Source path (e.g. /old-page) → Destination URL
Security Headers
▼
X-Frame-Options: SAMEORIGIN
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Referrer-Policy: strict-origin-when-cross-origin
Strict-Transport-Security (HSTS)
Content-Security-Policy: default-src 'self'
ServerTokens / hide server signature
Browser Caching
▼
Images (jpg, png, gif, webp, svg) — 1 month
CSS & JavaScript — 1 week
Fonts (woff, woff2, ttf) — 1 year
HTML — 1 hour
Disable ETags (for CDN environments)
CORS
▼
Allow Origin
Allow Methods: GET, POST, OPTIONS
Allow Headers: Content-Type, Authorization
CORS for fonts only (recommended)
Gzip Compression
▼
HTML, XML, Plain text
CSS & JavaScript
Fonts (SVG, TTF)
JSON & APIs
Custom Error Pages
▼
404 Not Found
403 Forbidden
500 Server Error
401 Unauthorized
Directory Options
▼
Disable directory listing (Options -Indexes)
Follow symbolic links (Options +FollowSymLinks)
Block access to dotfiles (.env, .git, etc.)
Block PHP execution in uploads directory
Block common bad bots
Default charset
Related Tools
Build robots.txt → Robots.txt Generator
Generate meta tags → Meta Tag Generator
Format SQL → SQL Formatter
