Skip to content
Sumly

301 Redirect Rule Generator

Convert old and new URL pairs into Nginx, Apache, and Cloudflare redirect rules.

URL migration pairs

Enter one redirect pair per line separated by spaces, tabs, or commas.

Redirect Type:

rewrite ^/about-us$ /about permanent;
rewrite ^/pricing-plans$ /pricing permanent;
rewrite ^/blog/2023/old-post$ /blog/new-post permanent;
rewrite ^/contact-support$ /contact permanent;

Copy into your web server config, `.htaccess`, or `_redirects` file.

How 301 Redirect Rule Generator works

Parses space- or tab-separated old-to-new URL pairs.

Formats syntax for Nginx rewrite, Apache RedirectMatch, Cloudflare _redirects, or Next.js config.

Supports 301 permanent and 302 temporary HTTP status codes.

Worked example

Migrate 20 blog URLs into Nginx rewrite rules with one click.

The tool above opens with these numbers. Change them to run your own scenario, or press Reset to come back to this example.

Frequently asked questions

Preview how your URLs will look when shared on X/Twitter, LinkedIn, and Facebook.

Generate multi-language and regional hreflang link tags for international sites.

See your result exactly as Google will render it — before you ship.

Rich-result-ready JSON-LD for articles, products, FAQs and local.

Six keyword-first titles, sized to Google's 60-character budget.

Benefit-led descriptions that fit 155 characters and earn the click.

  • redirects
  • 301
  • nginx
  • htaccess
  • seo
  • cloudflare