Skip to main content
All tools

301 Redirect Generator

Turn a list of old → new URLs into ready-to-paste redirect rules for Apache .htaccess or Nginx. Perfect for site migrations and URL changes.

From = the old path on your site. To = the full destination URL.

Redirect 301 /old-page https://example.com/new-page

Add to your .htaccess in the site root. Requires mod_alias (enabled by default on most Apache hosts).

Migrating a site? Check for broken links & redirect chains.

Analyze any URL free

Migrate URLs without losing rankings

When you change a URL, delete a page, or move to a new structure, a 301 redirect forwards both users and search engines to the right place — and carries the old page's ranking equity with it. Skip it and you lose traffic and links overnight.

List your old and new URLs above, pick your server, and copy the generated rules. Then verify there are no broken links or redirect chains left behind.

Frequently asked questions

When should I use a 301 vs a 302?

Use 301 (permanent) when a URL has moved for good — it passes ranking signals to the new URL. Use 302 (temporary) only for short-lived redirects like A/B tests or maintenance, where you want to keep the original indexed.

Do 301 redirects pass SEO value?

Yes. A 301 passes essentially all ranking signals (PageRank) to the destination. This is why redirecting old URLs during a migration is critical — otherwise you lose the equity of those pages.

What are redirect chains and why avoid them?

A chain is A → B → C. Each hop adds latency and can dilute signals. Always redirect straight to the final destination (A → C), and update old rules when destinations change.

Where do I put .htaccess redirects?

In the .htaccess file at your site root. They apply top-down, so put more specific rules first. On Nginx there is no .htaccess — the rules go in your server block and require a reload.

Should I redirect http to https and www to non-www?

Yes — pick one canonical version and 301 everything else to it. Consistent redirects prevent duplicate content and split signals.

This tool fixes one thing. Want the full picture of a live page?

Analyze any URL — 100 SEO checks, free