🔧 PHP Tools
Suite
← All Tools
🔒 .htaccess Generator
Build a custom .htaccess file for your Apache web server.
Options
Force HTTPS (HTTP → HTTPS redirect)
WWW Handling
No change
Add www (→ www.domain.com)
Remove www (→ domain.com)
Remove index.php from URLs
Enable Browser Caching
Enable GZIP Compression
Disable Directory Listing
Custom Error Pages (400,401,403,404,500)
Hide PHP version header
Enable Hotlink Protection
Block access to specific directories
Custom 301 Redirects (one per line: /old /new)
Generate .htaccess