Redirect Rule Generator
Generate .htaccess and nginx redirect rules for 301 redirects, HTTPS, and www canonicalization.
2 redirects configured
What this tool does
301 redirects preserve SEO value during URL changes, HTTPS migrations, and www canonicalization.
Generate Apache .htaccess or nginx snippets — paste into server config manually.
How to use it
- 1
Select redirect type: 301, HTTPS force, or www/non-www.
- 2
Enter source and destination URLs or patterns.
- 3
Copy the generated .htaccess or nginx config snippet.
Redirect priorities
HTTPS and www/non-www should redirect in one hop — avoid redirect chains.
Test redirects with curl or browser dev tools after deployment.
Tips
- Backup existing .htaccess before overwriting.
- Map old URLs in a spreadsheet before generating bulk redirect rules.
Related tools
All tools →Broken Link Syntax Checker
Find malformed URLs with regex — no crawling
Alt Text Template Generator
Bulk alt text templates for image SEO
Canonical Generator
Generate canonical link tags
Canonical Tag Generator
Generate rel=canonical link tags for SEO
Character Frequency Counter
Count character and word frequency in any text
Color Contrast Checker
Test WCAG color contrast for accessibility
Frequently asked questions
Should I use 301 or 302 redirects?▼
Use 301 for permanent moves (domain changes, URL restructures) — it passes most SEO value.
Does this modify my server?▼
No. This generates config text — you paste it into your server config manually.