.htaccess Redirect Generator
Generate Apache .htaccess redirect rules.
Processed locally in your browser. Nothing you enter is uploaded.
Overview
Generates 301/302 redirect rules for Apache's .htaccess file — the standard way to redirect old URLs after a site restructure.
How to use it
- 1Add a row per redirect with its old and new path.
- 2Choose 301 (permanent) or 302 (temporary) per rule.
- 3Copy the generated block into your .htaccess file.
Tips
- Use 301 for permanent moves so search engines transfer ranking signals to the new URL — 302 tells them the change is temporary and not to update their index.