# switch theme Hire me on Upwork

.htaccess Redirect Generator

Generate 301/302 redirects for Apache & Nginx — bulk CSV import, force-HTTPS/www, WordPress hardening & caching blocks. A migration staple.

.htaccess
runs in your browser · nothing uploaded

Build redirect + canonical rules for your .htaccess, then paste them near the top of the file. Works on Apache and on LiteSpeed (his host) — LiteSpeed reads .htaccess too. Rule order matters: the first match wins.

Redirect type
Directive style

Redirects — old path → new path (or full URL)
one per line · old,new or old → new or tab-separated (Screaming Frog / Ahrefs export)
Canonical URL enforcement
WordPress hardening + performance