Redirect Rule Generator

Generate redirect rules — for .htaccess or Nginx — to send old URLs to their new homes.

Not breaking links when URLs change

When you move or rename a page, every existing link and bookmark to the old URL breaks unless you redirect it. A redirect sends both visitors and search engines from the old address to the new one, preserving the traffic and the ranking value the old page had earned. This generates the redirect rules for your server so old URLs land in the right place.

Enter the old and new URLs and the rules are produced for your server type.

Use the right kind of redirect

The type matters. A 301 is a permanent redirect and is what you want for a page that has genuinely moved for good — it passes on the old page's ranking value and tells search engines to update. A 302 is temporary and does not pass that value, so reaching for it by mistake on a permanent move quietly loses you SEO equity. Also avoid long redirect chains, where one redirect points to another; send the old URL straight to the final destination in a single hop.

Questions & answers

What is the difference between a 301 and a 302 redirect?

A 301 is permanent and passes on the old page's ranking value; a 302 is temporary and does not. Use 301 for a genuine move.

Why avoid redirect chains?

Each hop slows the load and can dilute value. Point the old URL straight to the final destination in one step.

Is anything uploaded?

No. The rules are generated in your browser.

More SEO & Web tools