.htaccess Redirect Builder
Fill in source and destination URLs to generate correct .htaccess redirect rules.
Configure
Output
Summary
Fill in source and destination URLs to generate correct .htaccess redirect rules.
How it works
- Enter the old URL pattern
- Enter the new destination URL
- Choose redirect type (301, 302)
- Copy the generated .htaccess rules
Use cases
- Implementing permanent 301 redirects after URL restructuring
- Forcing www or HTTPS with RewriteRules
- Redirecting old blog slugs to new paths
Frequently Asked Questions
Last updated: 2026-06-09 ·
Reviewed by Nham Vu