.htaccess Redirect Rule Builder
Build correct Apache .htaccess 301/302 redirect rules, single or in bulk.
–
Rules use mod_rewrite. Keep them above CMS rewrite blocks in your .htaccess.
How to use
Enter the old path and new URL, choose the redirect type, and copy the RewriteRule.
Frequently asked questions
301 or 302 — which should I choose?
Use 301 for permanent moves (passes SEO value); use 302 for temporary moves or testing.
How do I add many redirects at once?
Use the bulk box: one old-path | new-url per line, then pick the redirect type once.
☕
ToolZap is free forever
Every tool runs 100% in your browser — no uploads, no signups. If a tool saved you time, consider supporting us with a small donation.
💛 Donate via PayPal