.htaccess generator

Tick the behaviors you want and copy the file. The generator does not SSH into your host or test the rules live.

Apache-only. Nginx and most JAMstack hosts ignore .htaccess. Prefer host-level redirects when you can.

How to Use

  1. Select HTTPS, www/apex, and any path redirects you need.
  2. Copy the file and keep a backup of the current .htaccess.
  3. Deploy to a staging vhost first. Watch for redirect loops.
  4. Confirm with the HTTP header checker (expect 301 once, then 200).

Key Features

  • Common redirect and cache snippets
  • Local generation
  • No write access to your server
  • Pairs with HTTP header checks

Frequently Asked Questions

Will this work on Netlify or Vercel?

Not as .htaccess. Use their _redirects / vercel.json (FlashKit already does for its own shells).

Can a rule take the site down?

Yes. Keep SSH/FTP access and a backup.

Related Tools