Redirect rule generator
Generate permanent redirect rules from one source and destination pair per line.
Bookmark this page
Keep this page handy for next time.
- On a computer
- Press Ctrl + D, or Command + D on a Mac.
- On a phone or tablet
- Open your browser's menu or Share menu and look for Add Bookmark, Bookmark or Add to favourites.
A bookmark saves the page link. Save any tool results separately.
How to use this tool
- Generate permanent redirect rules from one source and destination pair per line.
- Adjust the labelled settings, then run the tool. Copy the result or download it as a file.
Things to know
- Processing is local. Supplied code and network requests are never executed. Input and text settings are limited to 5 MiB combined; text settings alone are limited to 1 MiB.
- Sources are literal paths. Review rules in your server configuration before using them.
- At most 10,000 non-empty source/destination lines, 16,384 characters per line. Sources are literal paths. Generated rules remain within the 25 MiB text limit.
You might also need
More in web developmentCSS specificity calculator
Compare the specificity of CSS selectors.
Gitignore builder
Combine locally bundled ignore rules for a project.
HTML formatter
Format HTML source while preserving whitespace-sensitive content.
HTML to plain text
Extract readable text from HTML while retaining useful line breaks.
JavaScript formatter and minifier
Format or minify JavaScript source without running the program.
Sitemap builder and validator
Create a sitemap from URL lines or inspect a pasted XML sitemap.
Chmod calculator
Convert Unix permission modes into readable permissions and a ready-to-copy command.
CIDR range combiner
Combine overlapping or adjacent address ranges into the smallest equivalent CIDR list.
Content Security Policy builder
Build a policy from explicit directives and check common unsafe settings.