All Tools

Redirect Rules Generator

Generate redirect rules for Netlify and Cloudflare from a list of URL mappings.

Redirect Rules

Parsed: 0 rules

Options

Moved Permanently - Best for SEO, cached by browsers

Output Format

Enter redirect rules to generate output...

Netlify/Cloudflare: Save as _redirects in your publish directory.

Wildcards: Use * to match paths and :splat to reference them.

What is a Redirect Generator?

A URL Redirect Generator is a fast, technical SEO utility that bulk-translates simple mapping rules (e.g., "old page to new page") into the complex server-level syntax required by various hosting providers. Whether you are migrating a website, restructuring your URL hierarchy, or simply deleting an old blog post, this tool writes the exact code needed for Netlify, Cloudflare, Apache (`.htaccess`), or Nginx.

How to Generate 301 Redirect Rules

  1. Input Your Rules: Paste your redirects into the textbox using a simple format: `/old-path /new-path`. Write one rule per line.
  2. Choose Default Status: Select whether these are Permanent 301 Redirects (best for SEO) or Temporary 302 Redirects.
  3. Select Output Format: Click the tab for your specific hosting environment (Netlify, Cloudflare Bulk Redirects, Nginx conf, or Apache .htaccess).
  4. Copy and Deploy: Copy the generated syntax and paste it directly into your server configuration files or dashboard.

The Importance of 301 Redirects in SEO Migrations

When you delete a page or change its URL, any backlink pointing to the old URL becomes a broken "404 Not Found" link, resulting in a total loss of link equity (PageRank). Implementing a 301 Permanent Redirect tells Google's crawlers where the page moved, gracefully transferring up to 99% of the SEO ranking power from the old URL to the new one. Failure to implement proper 301 redirects during a site migration is the number one cause of catastrophic traffic drops.

Frequently Asked Questions (FAQs)

301 vs 302: What's the difference?

A 301 redirect means "Moved Permanently" and passes SEO value to the new destination. A 302 redirect means "Moved Temporarily"; it sends the user to the new page but tells search engines to keep the old URL indexed without transferring ranking power.

How do Wildcard redirects work?

Wildcards (like `*`) allow you to redirect an entire folder to a new location. For example, moving `/blog/*` to `/articles/:splat` (in Netlify syntax) ensures that `/blog/post-1` automatically redirects to `/articles/post-1` without writing a separate rule.

Where do I put Apache redirect code?

Apache rewrite rules generated by this tool should be placed in your site's `.htaccess` file, located in the root public directory. Ensure that `RewriteEngine On` is declared at the top of the file.

How do I test my redirects?

After deploying your server configuration, type the old URL into your browser. It should instantly resolve to the new URL. For strict verification, use a free HTTP Status Check tool to confirm the server response is exactly a 301.