Serving customers worldwide — servers in Nairobi, Kenya · Pay securely with Visa, Mastercard, or M-Pesa via PesaPal
Free Tool
.htaccess Generator
Build a clean Apache/LiteSpeed .htaccess from common, battle-tested rules.
Redirects & HTTPS
Caching & performance
Security
WordPress
How to use this
Configure the rules you want (toggle on the left).
Copy the generated content (right column).
Open your .htaccess file at your site's root (create one if it doesn't exist).
Paste the rules and save.
Test your site — if anything breaks, comment out the most-recent block and retry.
Important caveats
Backup first. A bad .htaccess can take your whole site offline. Always keep a copy of the working file before editing.
Order matters. Rewrite rules execute top-to-bottom — put HTTPS first, then www/non-www, then internal rewrites.
LiteSpeed honours most Apache directives but a few Header rules don't apply in restrictive setups. Hostiko sets security headers via PHP for that reason.