Free tool · runs in your browser
Redirect Generator (301)
In every relaunch, the redirect table decides whether rankings survive. Old URL on the left, new URL on the right – the generator builds the rules for your web server so you don’t have to look up the syntax. You can also paste two lists from the old and new sitemap and let the tool pair them by slug. For a WordPress to Astro move you get rules for Apache, Nginx or astro.config.mjs, optionally including WordPress leftovers such as the feed and wp-login.php.
301 Redirect Generator
Generate redirects for Apache, Nginx and Astro
Paste ready-made pairs, or let the tool match two URL lists (old and new) by slug. Everything runs in your browser.
Matching compares the last path segment (slug). Domain, parameters and .html are ignored; sitemap lines with <loc> are fine. Lines starting with # and empty lines are skipped. The target is always just the path of the new URL.
Pairs found (0)
Without a match (map manually) (0)
Goes into the .htaccess in the web root, above the WordPress block. Order matters: more specific paths first, because Redirect also applies to all sub-paths. Afterwards, test each old URL once in the browser. Goes into the server block of your Nginx configuration. Each rule matches that exact address only. Then run nginx -t and reload. Goes into defineConfig(…) in astro.config.mjs. On static hosting, Astro turns these into meta-refresh pages, not real 301s. Use them for local preview and add the Apache or Nginx rules for production.
# Enter redirects above … Your URLs never leave the browser – the rules are generated locally via JavaScript.
Everything is generated locally in your browser. Nothing you enter is transmitted to our server.
How it works
- 1 Paste URL pairs, or match an old and a new list by slug
- 2 Choose the format: Apache, Nginx or Astro config
- 3 Check warnings about chains and loops, then copy and apply the rules
Guides for this tool
- Migrating from WordPress to Astro: A Step-by-Step Guide Migrate WordPress to Astro without losing rankings: URL inventory, export to Markdown, 301 redirects, SEO carry-over and a launch checklist.
- Website Relaunch: Cost, Process, and the Priciest SEO Traps What a website relaunch costs, how it runs in six steps – and which relaunch SEO mistakes destroy rankings that took years to build.
Related Services
More tools
- wp-config.php Generator
- .htaccess Password Protection Generator
- PHP Limits Generator
- Restore WordPress Admin Access
- Cron Generator for WordPress
- SQL Generator: WordPress Database Cleanup
- Database Connection Test
- Caching Generator (.htaccess / Nginx)
- robots.txt for AI Crawlers
- llms.txt Generator
- Maintenance Page Generator
- Backup Planner
- Base64 Encode and Decode
- HTTP Status Checker
- All tools →