Free tool
WordPress .htaccess Security & Speed Generator
HTTPS redirect, security hardening, caching and GZIP rules for Apache / LiteSpeed.
Redirects
Security
Speed
Always keep a backup of your current .htaccess. Rename the downloaded file to “.htaccess”.
How to use it
- Choose the rules you want.
- Copy the generated code.
- Back up your current .htaccess, then replace it (it lives in the same folder as wp-config.php).
- Reload your site and test the login, forms and checkout.
Prefer an expert to handle it? Message me on WhatsApp
FAQ
Does this work on Nginx?
No - .htaccess is for Apache and LiteSpeed servers (most shared hosting, including Hostinger). Nginx needs server-config rules.
My site shows an error after saving
Restore your backup .htaccess, then add the rules back one group at a time to find the conflict.
Can I keep my caching plugin rules?
Yes. Leave the blocks your cache or security plugin added and paste these above the “# BEGIN WordPress” line.
More tools
Try another tool
Start your project
Let's build a website that wins you clients
Tell me about your business and goals. Within 24 hours you get a clear plan, a fixed-price quote and honest advice, with no pressure and no obligation.