Build bounded literal-path Apache RewriteRule snippets, NGINX exact locations, or a generic migration CSV locally. Review and test generated configuration before applying it.
Paste old and new URL pairs to inspect redirect loops, format rule directives, and export code snippets.
| # | Source URL (Old) | Target URL (New) | Status |
|---|---|---|---|
| No URL pairs entered yet. | |||
Your URL lists and website migration paths are computed locally and never sent to external servers.
Identifies cyclic redirect loops and self-referencing URLs before deployment.
Generates root .htaccess RewriteRule snippets, case-sensitive NGINX exact locations, and generic migration CSV maps.
Uses Redirect 301 or RewriteRule within mod_alias or mod_rewrite modules. Ideal for cPanel and shared Linux hosting environments.
Uses high-performance rewrite or return 301 rules inside NGINX server configuration blocks without per-directory file lookup overhead.
Exports a generic Old URL, New URL, Status Code CSV for review. This is not a vendor-specific importer format.
Enter your old and new URL pairs separated by commas, tabs, or spaces into the input box (or select a demo preset).
Choose Apache RewriteRule, NGINX exact locations, or generic CSV. Unsupported vendor-specific formats are not offered.
Click "Generate Redirect Code", review the loop validation table, and copy or download your configuration file.
A 301 permanent redirect informs web browsers, search engine crawlers, and HTTP clients that a resource has moved permanently to a new URL location. Transferring link equity (PageRank) and preserving organic traffic search visibility during site migrations requires accurate URL mapping.
This tool processes raw text or CSV inputs line-by-line using client-side regular expressions. It normalizes protocol schemes, trims trailing query parameters, checks for duplicate source paths, and alerts you if an old URL points directly to itself (which causes infinite browser redirect loops). It excludes duplicate and cyclic rows and formats the remaining rules. It does not inspect your server, existing rules, filesystem or routing setup.
Place the generated rules in the root .htaccess on Apache 2.4 with mod_rewrite enabled.
RewriteRule ^old-page$ /new-page [R=301,L,NE,QSD]
Place exact locations inside the appropriate NGINX server block.
location = /old-page { return 301 /new-page; }
CSV header: Old URL,New URL,Status Code
CSV entries are quoted and preserve HTTP status values. Adapt them to the importer you use.
.htaccess and NGINX configuration snippets without writing regex rules manually.A 301 redirect indicates a permanent move and signals that the destination replaces the old URL; search engines determine how to consolidate ranking signals. A 302 redirect indicates a temporary move and tells search engines to keep indexing the original source URL.
A redirect loop occurs when URL A redirects to URL B, and URL B redirects back to URL A (or URL A redirects directly to URL A). Browsers will show an "ERR_TOO_MANY_REDIRECTS" error. This tool flags potential loops automatically.
While Apache has no hard line limit, adding thousands of individual Redirect 301 lines to .htaccess can slow down server TTFB because Apache parses .htaccess on every HTTP request. For bulk migrations over 5,000 URLs, NGINX server blocks or edge platforms (Cloudflare) are recommended.
No. All text parsing, URL validation, and code generation take place inside your web browser's local memory. No data is transmitted to remote servers.
Choose the appearance you prefer. We’ll remember your selection across Tool Radar 360.
You can change this anytime from the header.