SEO tool

Redirect Rules Generator for Nginx

Generate nginx location/return 301 rules from a URL mapping.

Produce clean nginx redirect rules for a URL migration.

Free · runs in your browser

One per line: /old | /new

Output

Run this tool

Free daily runs · Pro is unlimited.

Redirects for Nginx tips

  • Use `return 301` inside a location
  • Prefer exact matches for one-to-one moves
  • Test with curl -I before deploying
  • Keep the redirect map in one file.

How to use Redirects for Nginx

  1. Paste old → new URL pairs (one per line).
  2. Choose nginx or Apache.
  3. Copy the redirect rules.

Frequently asked questions

301 vs 302?

301 is a permanent redirect (best for SEO); 302 is temporary.

Why redirect?

Preserve ranking and traffic when URLs change.

Is it free?

Yes, free with no signup.

Automate this at scale

MarsGeo Pro adds bulk audit, programmatic SEO page generation and API access.

See plans

Related tools

Robots.txt Generator

Generate a valid robots.txt with allow/disallow rules, sitemap and crawl-delay. Copy and p…

Open →

XML Sitemap Generator

Paste your URLs and generate a valid XML sitemap ready to submit to Google Search Console.…

Open →

Canonical Tag Checker

Paste a page's HTML and instantly see its canonical tag, title, meta description, H1 and O…

Open →

Meta Description Generator

Turn a paragraph into a clean, length-checked meta description with a live SERP preview.…

Open →

SEO Title Generator

Generate title tag variants for a keyword and see how they look in Google with a pixel-wid…

Open →

Open Graph Generator

Generate Open Graph and Twitter Card meta tags so your link previews look right on social …

Open →