🔧 Default Settings
Engine on, DirectoryIndex, options
🔒 Force HTTPS
301 redirect all HTTP traffic to HTTPS
🌐 www Redirect
Force www or non-www version
🛡️ Force SSL (legacy)
SSLRequireSSL for sensitive folders
➕ Trailing Slash
Add or remove trailing slash on URLs
📦 GZIP Compression
Compress HTML, CSS, JS, JSON, XML, SVG
⏱️ Browser Caching
Set Cache-Control and Expires headers
🚨 Custom Error Pages
Map 404, 500 etc. to your custom pages
🚫 Hotlink Protection
Stop other sites from embedding your images
📁 Directory Listing
Disable or restrict directory browsing
🔒 Deny Sensitive Files
Block .env, .htaccess, .git, wp-config
⚛️ SPA Fallback
Serve index.html for client-side routes
⚙️ Module Options
📝 Generated .htaccess
✏️ Edit & Customize
💡 Tip:
After generating, review the output carefully. .htaccess errors can take your site offline (500 Internal Server Error). Always back up the existing file before replacing it.