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.

More tools

Try another tool

Privacy Policy Generator A ready-to-publish privacy policy for your website in 60 seconds. Free, no signup, no watermark. Open tool Free Website Mockup Generator Put any website screenshot in a laptop, browser or phone frame and download a high-res PNG. Free, no watermark. Open tool Free Website Health Check Is your site broken, hacked, outdated or invisible on Google? Score + fix list in 30 seconds. Open tool Free WordPress Security Scanner Check SSL, security headers, outdated WordPress, exposed usernames, XML-RPC and more - with fixes. Open tool Free WordPress Theme & Plugin Detector See which theme, plugins, page builder and hosting any WordPress website uses. Open tool Free Website Speed Test Check performance, SEO and Core Web Vitals scores with the top fixes for any page. Open tool Free Website Cost Calculator Estimate the price and timeline of your WordPress or WooCommerce website in under a minute. Open tool Free Image Compressor & WebP Converter Compress, resize and convert images to WebP - privately, right in your browser. Open tool Free Meta Tag Generator & SERP Preview Preview how your page looks in Google and generate SEO, Open Graph and Twitter tags. Open tool Free Schema Markup Generator Create LocalBusiness, Organization and FAQ JSON-LD structured data in seconds. Open tool Free Robots.txt Generator for WordPress Build an SEO-friendly robots.txt for WordPress & WooCommerce, with your sitemap. Open tool Free WordPress Salt Key Generator Fresh, secure AUTH keys and salts for wp-config.php - generated in your browser. Open tool Free WhatsApp Link & QR Generator Create click-to-chat links, QR codes and website buttons for your WhatsApp number. Open tool Free UTM Link Builder Build tracking links so Google Analytics shows which channels bring clients. Open tool Free

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.