๐ง 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.