Free tool

WordPress .htaccess Security & Speed Generator

HTTPS redirect, security hardening, caching and GZIP rules for Apache / LiteSpeed.

Redirects

Security

Speed

.htaccess

Always keep a backup of your current .htaccess. Rename the downloaded file to “.htaccess”.

How to use it

  1. Choose the rules you want.
  2. Copy the generated code.
  3. Back up your current .htaccess, then replace it (it lives in the same folder as wp-config.php).
  4. 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.

Let's work together

Ready for a website your clients trust at first glance?

Tell me about your project on WhatsApp or book a free consultation call — no pressure, just a clear plan and an honest quote.