<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: IT_Crowd</title>
    <description>The latest articles on DEV Community by IT_Crowd (@it_crowd).</description>
    <link>https://dev.to/it_crowd</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4265511%2F40ce7d2d-ee9a-4aea-a44a-2fe21e7e7223.png</url>
      <title>DEV Community: IT_Crowd</title>
      <link>https://dev.to/it_crowd</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/it_crowd"/>
    <language>en</language>
    <item>
      <title>How to check a redirect map before a website migration</title>
      <dc:creator>IT_Crowd</dc:creator>
      <pubDate>Wed, 25 Nov 2026 21:10:54 +0000</pubDate>
      <link>https://dev.to/it_crowd/how-to-check-a-redirect-map-before-a-website-migration-1ap3</link>
      <guid>https://dev.to/it_crowd/how-to-check-a-redirect-map-before-a-website-migration-1ap3</guid>
      <description>&lt;p&gt;The redirect map is the spreadsheet behind a website migration: one row per old URL, with the new URL it should go to. The redirect rules are built from it, so every mistake in the map becomes a live mistake on launch day.&lt;/p&gt;

&lt;p&gt;We move sites between platforms (Webflow, Shopify, WordPress, custom code), and we check the map before anything goes live. This post covers the three kinds of mistakes we look for, with real output from &lt;a href="https://github.com/itcrowd-work/redirect-map-check" rel="noopener noreferrer"&gt;redirect-map-check&lt;/a&gt;, the free, open-source checker we built for it:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Old URLs the map leaves out&lt;/li&gt;
&lt;li&gt;Rows that send a URL to the wrong page&lt;/li&gt;
&lt;li&gt;Rows that contradict each other&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;All examples come from the tool's demo shop, Harbor &amp;amp; Pine. It's made up, so there's no client data here.&lt;/p&gt;

&lt;h2&gt;
  
  
  Start with every old URL
&lt;/h2&gt;

&lt;p&gt;Google's &lt;a href="https://developers.google.com/search/docs/crawling-indexing/site-move-with-url-changes" rel="noopener noreferrer"&gt;site-move guide&lt;/a&gt; says that in the simplest moves, such as a domain change with a wildcard redirect, you may not need a list of old URLs. For more complex moves, you list them and decide where each one goes. It suggests where to look:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;your sitemaps&lt;/li&gt;
&lt;li&gt;server logs or analytics, for the URLs that get the most traffic&lt;/li&gt;
&lt;li&gt;Search Console's links report, for pages with internal and external links&lt;/li&gt;
&lt;li&gt;your CMS&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It also says to include embedded images and videos.&lt;/p&gt;

&lt;p&gt;On one of our own moves, a Webflow store going to Shopify, we built the 301s by crawling the old sitemap and combining it with the redirects already set up in Webflow. The sitemap covers the pages the old site listed. The existing redirects cover older addresses that already pointed somewhere.&lt;/p&gt;

&lt;p&gt;If you're leaving Webflow, export its redirects first. Webflow's &lt;a href="https://help.webflow.com/hc/en-us/articles/33961211526291-Import-export-301-redirects" rel="noopener noreferrer"&gt;help page&lt;/a&gt; warns that importing a redirects CSV overwrites all existing redirects.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Old URLs missing from the map
&lt;/h2&gt;

&lt;p&gt;A URL in the old sitemap with no row in the map: after launch it answers 404, or keeps answering at its old address. The checker reports it like this:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fca7xv5jdppx71t2wgbv3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fca7xv5jdppx71t2wgbv3.png" alt="A report card for /gift-cards: the old URL has no row in the map and no redirect. The fix suggests adding a row and a 301 to /shop/gift-vouchers, a strong match." width="800" height="624"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Each problem comes with a written fix, and here it suggests the closest live page it found. If nothing replaces the page, ignore the suggestion: Google's &lt;a href="https://support.google.com/webmasters/answer/2445990" rel="noopener noreferrer"&gt;help on 404 errors&lt;/a&gt; says a deleted page with no replacement should return a 404, and that 404s don't harm a site's indexing or ranking.&lt;/p&gt;

&lt;p&gt;Two related cases:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;In the map, but not redirected:&lt;/strong&gt; the row exists, but nobody built the rule. Fix: &lt;code&gt;Add a 301 from /careers to /jobs (/jobs is live). Or, if /careers is meant to stay, delete row 15 from the map.&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Not in the map, still works:&lt;/strong&gt; a URL that keeps its address. That's fine if it was intended, so it's only a notice.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  2. Rows that send a URL to the wrong page
&lt;/h2&gt;

&lt;p&gt;A redirect can land on a live page and still be wrong. The checker looks for this in two ways.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The live rule doesn't match the map.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;Change the rule for /delivery-information to a 301 straight to /help/delivery, which is live ("Delivery – Harbor &amp;amp; Pine"). It currently lands on /help/returns.&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The rule matches the map, but the map is wrong.&lt;/strong&gt; This is the one a URL-only check can't catch. The checker compares the old page's title and H1 with the new page's, ignoring words that appear on most pages, like the brand name:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9n21iiddq2iwpp73wyxj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9n21iiddq2iwpp73wyxj.png" alt="A report card for /products/pine-bookshelf: the map sends it to the oak dining table. The fix names a closer match, /shop/storage/pine-bookshelf, scored as a strong match." width="800" height="645"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The suggested pages are scored on title and H1 words and on the words in the URL slug. A score of 0.75 or more is labelled strong; from 0.5, possible.&lt;/p&gt;

&lt;p&gt;It compares words, not meaning. A page renamed with different words, or translated, won't be found, so treat the suggestions as a shortlist to confirm.&lt;/p&gt;

&lt;p&gt;After launch the old pages are gone, so the checker needs their titles from before. Keep the &lt;code&gt;old-pages.json&lt;/code&gt; that a pre-launch run saves, or point the checker at a copy of the old site.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Rows that contradict each other
&lt;/h2&gt;

&lt;p&gt;These come from reading the map itself, so they show up even before any rule is built.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Conflicting rows:&lt;/strong&gt; one old URL, two targets.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fj367c5jlmlr69b8jfqgk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fj367c5jlmlr69b8jfqgk.png" alt="A report card for /about-us: rows 3 and 19 send it to different pages. The fix says to keep one, and that the site currently follows row 3." width="799" height="433"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Rows that redirect to each other:&lt;/strong&gt; &lt;code&gt;Rows 21 and 22 send these URLs to each other (/sale/winter → /sale/spring → /sale/winter). Point row 21 at a live page instead of another old URL.&lt;/code&gt; (This one is from the demo map with two rows added.)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A row pointing at another old URL&lt;/strong&gt;, which turns the rule into a chain: &lt;code&gt;Change row 18 to point straight at /shop instead of /old-promo-2023, and make the rule one hop.&lt;/code&gt; Google advises redirecting &lt;a href="https://developers.google.com/search/docs/crawling-indexing/site-move-with-url-changes" rel="noopener noreferrer"&gt;straight to the final destination&lt;/a&gt; and keeping chains short where that isn't possible.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A row that keeps the same URL&lt;/strong&gt;, like &lt;code&gt;/,/&lt;/code&gt;. It's fine as documentation, but don't build a rule from it: a URL redirecting to itself loops.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Duplicate rows and skipped rows&lt;/strong&gt; (a row without two URLs, like &lt;code&gt;/press,TBC&lt;/code&gt;) are reported as notices.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Run it on your own map
&lt;/h2&gt;

&lt;p&gt;It's a Node CLI (Node 20+) with no runtime dependencies, and it runs on your own machine:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx redirect-map-check \
  --sitemap https://www.example.com/sitemap.xml \
  --map redirects.csv \
  --base https://staging.example.com
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Or &lt;code&gt;npx redirect-map-check ui&lt;/code&gt; for a local page in your browser where you drop the files in.&lt;/p&gt;

&lt;p&gt;The map can be a CSV or TSV with commas, semicolons or tabs, with or without a header. Headers such as &lt;code&gt;old&lt;/code&gt;/&lt;code&gt;new&lt;/code&gt;, &lt;code&gt;from&lt;/code&gt;/&lt;code&gt;to&lt;/code&gt;, &lt;code&gt;Source URL&lt;/code&gt;/&lt;code&gt;Destination URL&lt;/code&gt; or &lt;code&gt;Redirect from&lt;/code&gt;/&lt;code&gt;Redirect to&lt;/code&gt; are recognised in any order. You get a terminal summary plus CSV, HTML and JSON reports.&lt;/p&gt;

&lt;p&gt;Run it against staging before launch, then against the live site after.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Limits:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It follows server redirects only, not JavaScript or meta refresh.&lt;/li&gt;
&lt;li&gt;It checks the URLs you give it (the old sitemap, a URL list and the map), and doesn't crawl links to find more.&lt;/li&gt;
&lt;li&gt;It skips image, video and news entries in sitemaps. If those addresses change too, pass them in with &lt;code&gt;--urls&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  More detail
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://itcrowd.work/tools/redirect-map-check/" rel="noopener noreferrer"&gt;The tool, with all its options&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://github.com/itcrowd-work/redirect-map-check" rel="noopener noreferrer"&gt;Source on GitHub&lt;/a&gt; (MIT)&lt;/li&gt;
&lt;li&gt;Guides to the other problems it finds:

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://itcrowd.work/tools/redirect-map-check/redirects-to-homepage/" rel="noopener noreferrer"&gt;Redirects to the homepage&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://itcrowd.work/tools/redirect-map-check/redirect-404/" rel="noopener noreferrer"&gt;Redirects that end in a 404&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://itcrowd.work/tools/redirect-map-check/redirect-chains-and-loops/" rel="noopener noreferrer"&gt;Redirect chains and loops&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://itcrowd.work/tools/redirect-map-check/temporary-redirects/" rel="noopener noreferrer"&gt;Temporary redirects&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Feedback on the report and on the wording of the fixes is very welcome, in the comments or as a GitHub issue.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://itcrowd.work/tools/redirect-map-check/redirect-map/" rel="noopener noreferrer"&gt;itcrowd.work&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>seo</category>
      <category>webdev</category>
      <category>opensource</category>
      <category>node</category>
    </item>
  </channel>
</rss>
