SlugGenius
Content
Slug GeneratorBulk Slug GeneratorSERP Snippet Preview
Technical
Schema GeneratorRobots.txt Generator301 Redirect Generator
Social
Open Graph GeneratorOG Image GeneratorNEW
GEO · AI visibility
GEO Readiness AuditNEWLLMs.txt Generator
Resources
Blog
10 free tools · no sign-up
Built for search & AI visibility
SlugGenius
Content
Slug GeneratorBulk Slug GeneratorSERP Snippet Preview
Technical
Schema GeneratorRobots.txt Generator301 Redirect Generator
Social
Open Graph GeneratorOG Image GeneratorNEW
GEO · AI visibility
GEO Readiness AuditNEWLLMs.txt Generator
Resources
Blog
10 free tools · no sign-up
SlugGenius

Free SEO & GEO toolkit. No sign-up, no fluff — just fast tools.

Content
  • Slug Generator
  • Bulk Slug Generator
  • SERP Snippet Preview
Technical
  • Schema Generator
  • Robots.txt Generator
  • 301 Redirect Generator
Social
  • Open Graph Generator
  • OG Image Generator
GEO · AI visibility
  • GEO Readiness Audit
  • LLMs.txt Generator

© 2026 SlugGenius. All rights reserved.

AboutContactFAQBlogPrivacyTerms
SlugGeniusTechnical301 Redirect Generator

301 Redirect Generator

Technical

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.

How to use this tool

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.

Learn how it works

How to Set Up 301 Redirects After Changing a URL SlugChanging a published URL without a 301 redirect means losing your rankings and backlinks overnight. This guide covers when to redirect, how link equity transfers, and the exact syntax for Apache, Nginx, and Next.js.Canonical Tags Explained: How to Fix Duplicate Content IssuesDuplicate content splits ranking signals across multiple URLs instead of consolidating them on one. A canonical tag tells Google which version counts — here is how to use one correctly.URL Parameters and SEO: How to Handle Tracking Tags, Filters, and Faceted NavigationTracking parameters, sort orders, and filter combinations can multiply a single page into thousands of crawlable near-duplicates. Here's how to keep parameterized URLs from draining your crawl budget.

Frequently asked questions2

QWhat is the difference between a 301 and 302 redirect?

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.

QDo 301 redirects lose PageRank?

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.

Related tools

Robots.txt GeneratorCompose crawl rules without syntax mistakes.Slug GeneratorTurn any title into a clean, SEO-friendly URL slug.

Redirects

FromToType

Output

.htaccess
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.

How it works.

Generate redirect rules for Apache, Nginx, or Next.js in seconds — protect your SEO during any URL change.

01

Add your URL pairs

Enter the old (From) path and the new (To) URL for each redirect you need.

02

Choose redirect type

Select 301 (permanent) or 302 (temporary) for each redirect rule.

03

Pick your server format

Switch between Apache .htaccess, Nginx config, or Next.js config output.

04

Copy and deploy

Paste the generated rules into your server configuration and reload.

Why redirects are critical for SEO

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.

301
Permanent redirect
Use when: Page moved forever, domain migration, URL restructure
Passes ~100% link equity. Old URL removed from index.
302
Temporary redirect
Use when: A/B tests, maintenance pages, short-term campaigns
Old URL stays indexed. No equity transfer.
Chain
Avoid chains
Use when: A → B → C sequences
Wastes crawl budget and dilutes equity with every hop.