Create 301 and 302 redirect rules for .htaccess, nginx.conf, or next.config.js. Add as many URL pairs as you need and copy the ready-to-paste configuration snippet.
Add each old-URL-to-new-URL pair as a row, choose your server platform, and the tool outputs the exact syntax that platform expects — .htaccess rewrite rules, an Nginx location block, or a Next.js redirects() array entry. Each format has different quoting and escaping rules, which is the usual source of a redirect rule that looks correct but silently fails to match.
Default to 301 unless you have a specific reason not to. A 301 tells search engines the move is permanent and consolidates ranking signals onto the new URL; a 302 keeps the old URL in the index and is appropriate only for genuinely temporary situations — an A/B test, a maintenance page, a seasonal redirect you plan to reverse.
Watch for redirect chains: if URL A redirects to B, and B later redirects to C, update A to point straight to C. Each extra hop adds latency and a small amount of link-equity loss, and chains of three or more hops are sometimes not followed at all by crawlers with limited redirect-following budgets.
This tool is the natural companion to a slug cleanup — run your old titles and new titles through the Slug Generator or Bulk Slug Generator first, then feed the same before/after URL pairs in here so nothing falls through the gap between renaming a page and redirecting its old address.
A 301 is a permanent redirect — it tells search engines that the page has moved forever and passes virtually all link equity to the new URL. A 302 is temporary; Google continues to index the original URL and does not pass equity.
Historically Google reported a small loss, but current guidance is that well-implemented 301 redirects pass virtually all link equity. The key is to redirect directly from old to new URL — avoid chains.
Redirects
| From | To | Type | |
|---|---|---|---|
Output
Redirect 301 /old-blog-post /new-blog-post Redirect 301 /services https://sluggenius.com/tools
Use 301 for permanent moves so link equity passes to the new URL. Use 302 only for temporary redirects.
Generate redirect rules for Apache, Nginx, or Next.js in seconds — protect your SEO during any URL change.
Enter the old (From) path and the new (To) URL for each redirect you need.
Select 301 (permanent) or 302 (temporary) for each redirect rule.
Switch between Apache .htaccess, Nginx config, or Next.js config output.
Paste the generated rules into your server configuration and reload.
When you move or delete a page, any backlinks pointing to the old URL become broken references. Search engines follow those links and encounter a 404 error, causing the link equity (PageRank) accumulated by those backlinks to simply disappear. A 301 redirect preserves that equity by telling search engines: “This page has permanently moved — transfer all ranking signals to the new URL.” Every major site migration, domain change, or URL restructure should include a comprehensive redirect plan built and tested before the new site goes live.
The difference between 301 and 302 redirectsmatters far more than most site owners realize. A 301 (permanent) redirect signals that the original URL is gone forever and passes close to 100% of its link equity to the destination. A 302 (temporary) redirect tells Google to continue indexing the original URL and does not pass equity to the new page. Using a 302 when you mean a 301 — a surprisingly common mistake — means your new page may never inherit the ranking power of the original, even if the "temporary" redirect stays in place for years.
Redirect chains compound crawl and equity problems.A chain occurs when URL A redirects to URL B, which redirects to URL C. Each additional hop costs crawl budget, introduces latency for real users, and dilutes the amount of link equity passed to the final destination. Google recommends flattening chains so the old URL redirects directly to the final target URL. When auditing your redirects, trace every chain back to its source and update it to point directly to the canonical destination.