When a page moves, a 301 redirect sends visitors and most of the link value to the new address. This tool turns a list of old paths and new URLs into ready-to-paste redirect rules for Apache (.htaccess) or Nginx.
When a page has moved permanently, such as a new URL, a merged article or a domain change. It sends visitors and most link value to the new page.
Most shared WordPress hosting uses Apache (.htaccess). If you are not sure, ask your host or use a redirect plugin.
Chains of many redirects slow pages down. Point old URLs straight to the final URL.
Use a 301 (moved permanently) when a page has a new permanent address, for example after changing a slug, merging two articles or moving from HTTP to HTTPS. Use a 302 (found) or 307 only when the move is temporary, such as a short promotion page or maintenance. If a page is gone for good and there is no close replacement, a 410 (gone) or a plain 404 is more honest than redirecting it somewhere unrelated.
Google has said that 3xx redirects do not lose PageRank, so a correct 301 to a closely matching page keeps most of the value the old URL earned. Redirecting dozens of unrelated pages to the homepage is different: Google usually treats those as soft 404s, so the old links stop helping.
For Apache, the simplest rule for one page is:
Redirect 301 /old-page/ https://example.com/new-page/
If your .htaccess already uses mod_rewrite (WordPress does), a rewrite rule placed above the WordPress block gives you more control:
RewriteEngine On
RewriteRule ^old-page/?$ https://example.com/new-page/ [R=301,L]
For Nginx, add a location block inside the server block and reload Nginx:
location = /old-page/ {
return 301 https://example.com/new-page/;
}
Say you rename three blog posts and merge two thin guides into one. Your input would be five lines, each with the old path and the new full URL. The generator returns five rules. Paste them into .htaccess above the line # BEGIN WordPress, save, and open each old URL in a private browser window. Each one should land on the new page in a single hop.
curl -I https://example.com/old-page/ in a terminal. The first line should show 301 and the Location header should show the new URL.200, not another redirect./old-page and /old-page/ are different paths. The rewrite example above matches both.Yes. In Apache, RedirectMatch 301 ^/old-folder/(.*)$ https://example.com/new-folder/$1 keeps the rest of each path. Test a few URLs afterwards.
One hop adds a small delay for the visitor. Chains add more, which is another reason to keep every redirect to a single step.
No. It only writes text in your browser. Nothing is applied until you paste the rules into your own configuration.