<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by pdbear on Medium]]></title>
        <description><![CDATA[Stories by pdbear on Medium]]></description>
        <link>https://medium.com/@andrewsmithzeng?source=rss-68b9760395fe------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*6JzZWoQZfaAUCMovQXdPfw.png</url>
            <title>Stories by pdbear on Medium</title>
            <link>https://medium.com/@andrewsmithzeng?source=rss-68b9760395fe------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 08:14:32 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@andrewsmithzeng/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to bulk-check domain expiry dates and availability with RDAP]]></title>
            <link>https://medium.com/@andrewsmithzeng/how-to-bulk-check-domain-expiry-dates-and-availability-with-rdap-60c1e87884e6?source=rss-68b9760395fe------2</link>
            <guid isPermaLink="false">https://medium.com/p/60c1e87884e6</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[apify]]></category>
            <category><![CDATA[seo]]></category>
            <category><![CDATA[domain-names]]></category>
            <category><![CDATA[web-scraping]]></category>
            <dc:creator><![CDATA[pdbear]]></dc:creator>
            <pubDate>Mon, 26 Oct 2026 13:22:40 GMT</pubDate>
            <atom:updated>2026-10-28T12:22:54.384Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*UJzjRskpraTkVO28.png" /></figure><p><em>Disclosure: I build and sell the paid Apify Actor mentioned near the end. Everything before that section uses free, public services. This article was drafted with AI assistance; the code and examples were tested.</em></p><p>Sooner or later, most people who own more than a handful of domains need the same answers: <em>Which of our domains expire soon? Which of these name ideas are actually free? Is that competitor’s domain about to lapse?</em> The traditional answer was “run whois in a loop and parse the output&quot;, which breaks constantly because every registry formats WHOIS text differently.</p><p>There’s a better way. <strong>RDAP</strong> (Registration Data Access Protocol) is the ICANN-mandated successor to WHOIS, and it returns structured JSON. This tutorial shows how to:</p><ol><li>Find the right RDAP server for any TLD.</li><li>Look up creation date, expiry date and status for a list of domains.</li><li>Tell “available” apart from “not in the registry, but you still can’t have it”.</li><li>Add DNS checks (website? email? SPF/DMARC?) for context.</li></ol><h3>Step 1: Find the RDAP server for each TLD</h3><p>IANA publishes a bootstrap file that maps every TLD to its RDAP base URL:</p><pre>curl -s https://data.iana.org/rdap/dns.json | python3 -m json.tool | head -40</pre><p>For .com it points to https://rdap.verisign.com/com/v1/. A lookup is just a GET:</p><pre>curl -s https://rdap.verisign.com/com/v1/domain/stackoverflow.com | python3 -m json.tool</pre><p>The parts you care about:</p><ul><li>events: an array with eventAction values such as registration, expiration and last changed</li><li>status: EPP statuses like client transfer prohibited or pending delete</li><li>entities: the registrar (with its IANA ID) and sometimes registrant info, which is often redacted</li><li>nameservers and secureDNS</li></ul><p>For “thin” registries like .com, the registry response has the core dates. The registrar&#39;s own RDAP server (linked in the links array) sometimes has more detail, such as abuse contacts.</p><p>A 404 from the registry RDAP server means <strong>the registry has no record of that domain</strong>. That’s the start of an availability check, not the end of one (see Step 3).</p><h3>Step 2: A bulk lookup script</h3><p>This tested script (needs pip install httpx) loads the bootstrap file once, looks up each domain, computes days until expiry, and prints CSV:</p><pre>python rdap_check.py stackoverflow.com example.org my-new-startup-idea-zzq.com apify.com &gt; domains.csv</pre><p>Output from a run I did today (dates come straight from the registries):</p><p>Things to add before you run it on thousands of domains:</p><ul><li><strong>Rate limits are per server.</strong> Registries throttle aggressively and answer with HTTP 429. Group domains by RDAP server, keep a small concurrency per server, and back off on 429. The naive retry in the script is fine for a short list, not for a portfolio.</li><li><strong>Input cleanup.</strong> Real lists contain URLs, emails and subdomains. Extract the registrable domain with the <a href="https://publicsuffix.org/">Public Suffix List</a> (for example the tldextract package), so shop.example.co.uk becomes example.co.uk, not co.uk.</li><li><strong>Not every TLD has RDAP.</strong> Some ccTLDs still only offer port-43 WHOIS. For those you need a WHOIS fallback with per-registry parsing, or at least a DNS check (Step 4) to infer whether the name is delegated.</li></ul><h3>Step 3: What “available” really means</h3><p>An RDAP 404 means the registry has no record. You still might not be able to register the name:</p><ul><li><strong>Premium and reserved names</strong> can be missing from RDAP and still be unbuyable, or priced far above normal.</li><li><strong>Pending delete</strong> domains (status pending delete) are about to drop. They&#39;re registered right now, but they&#39;ll become available within days, which is why domain investors watch for them.</li><li><strong>Redemption period / auto-renew grace:</strong> for many gTLDs, the registry auto-renews at expiry and the registrar decides later whether to delete. So an expiry date that just jumped forward a year doesn’t prove the owner actually renewed.</li></ul><p>Always confirm at a registrar before you plan around a name.</p><h3>Step 4: Add DNS for context</h3><p>Registration data tells you who holds a domain. DNS tells you whether it’s <em>used</em>. DNS-over-HTTPS makes this easy without installing anything:</p><pre># Is it delegated at all? (NXDOMAIN = Status 3) curl -s -H &#39;accept: application/dns-json&#39; &#39;https://cloudflare-dns.com/dns-query?name=example.com&amp;type=NS&#39; # Does it receive email? curl -s -H &#39;accept: application/dns-json&#39; &#39;https://cloudflare-dns.com/dns-query?name=example.com&amp;type=MX&#39; # Email authentication policy curl -s -H &#39;accept: application/dns-json&#39; &#39;https://cloudflare-dns.com/dns-query?name=_dmarc.example.com&amp;type=TXT&#39;</pre><p>Useful combinations:</p><ul><li><strong>Registered, no NS/A records:</strong> parked or abandoned, sometimes a candidate for a purchase offer.</li><li><strong>Registered, has MX but no DMARC:</strong> a spoofing risk if it’s one of <em>your</em> domains.</li><li><strong>Your own domain expiring in under 30 days with auto-renew off:</strong> fix it today.</li></ul><h3>Step 5: Turn it into a monitor</h3><p>For a portfolio you own, run the check weekly and alert on:</p><ul><li>days_until_expiry below a threshold (30 is a common default)</li><li>a status change, for example losing client transfer prohibited (transfer lock), which is worth knowing about immediately</li><li>nameserver changes you didn’t make</li></ul><p>A cron job that writes the CSV and diffs it against last week’s copy is enough for most teams.</p><h3>Step 6: Automating it (optional)</h3><p>If you don’t want to maintain the bootstrap handling, per-server rate limits, WHOIS fallback and DNS checks yourself, I packaged this as an Apify Actor: <a href="https://apify.com/pandabear/bulk-whois-domain-checker"><strong>Bulk WHOIS &amp; Domain Availability Checker</strong></a>. It’s paid, so here’s exactly what it does:</p><ul><li>takes domains, URLs or email addresses, and extracts and de-duplicates the registrable domain</li><li>queries RDAP via the IANA bootstrap and follows the registrar’s RDAP server for extra detail, with a port-43 WHOIS fallback for ccTLDs without RDAP</li><li>returns availability (registered / available / pending-delete / unknown), registrar, created/expiry dates, domainAgeYears, daysUntilExpiry, an expiringSoon flag, EPP statuses, nameservers and DNSSEC</li><li>optionally adds NS/A/MX, SPF and DMARC, plus hasWebsite / hasEmail flags</li><li>writes a SUMMARY record and an AVAILABLE CSV. Redacted registrant data stays empty and nothing is guessed.</li></ul><p>Pricing from the README: $2 per 1,000 domains checked, plus $0.005 per run, with DNS included. Its “available” has the same caveat as above: no registry record and no DNS delegation, so premium or reserved names can still be unbuyable.</p><p>If you’re vetting an expired domain before buying it, pair this with a look at its history. I covered that in <a href="https://dev.to/andrewsmithzeng/how-to-find-and-fix-lost-pages-after-a-website-migration-2e52">How to find and fix lost pages after a website migration</a> using the Wayback Machine CDX API.</p><h3>Checklist</h3><ul><li>[ ] Use RDAP (JSON) via the IANA bootstrap instead of parsing WHOIS text</li><li>[ ] Clean input to registrable domains with the Public Suffix List</li><li>[ ] Respect per-server rate limits, and back off on 429</li><li>[ ] Treat “available” as “confirm at a registrar”</li><li>[ ] Add DNS (NS/MX/DMARC) for context</li><li>[ ] Schedule it and alert on expiry, status and nameserver changes</li></ul><p><em>Originally published at </em><a href="https://dev.to/andrewsmithzeng/how-to-bulk-check-domain-expiry-dates-and-availability-with-rdap-57ho"><em>https://dev.to</em></a><em> on October 26, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=60c1e87884e6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to audit your XML sitemap for indexing problems]]></title>
            <link>https://medium.com/@andrewsmithzeng/how-to-audit-your-xml-sitemap-for-indexing-problems-5eb5d206aa0d?source=rss-68b9760395fe------2</link>
            <guid isPermaLink="false">https://medium.com/p/5eb5d206aa0d</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[apify]]></category>
            <category><![CDATA[web-scraping]]></category>
            <category><![CDATA[seo]]></category>
            <category><![CDATA[technical-seo]]></category>
            <dc:creator><![CDATA[pdbear]]></dc:creator>
            <pubDate>Mon, 26 Oct 2026 13:22:15 GMT</pubDate>
            <atom:updated>2026-10-27T16:05:11.229Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Disclosure: I build and sell the paid Apify Actor mentioned near the end. Everything before that section works with free tools. This article was drafted with AI assistance; the code and examples were tested.</em></p><p>Your XML sitemap is supposed to be a list of pages you want indexed. In practice it often turns into a list of pages that redirect, return 404, carry a noindex tag, or tell Google that some <em>other</em> URL is the real one. Each of those sends a mixed signal. When Search Console shows a long &quot;Discovered - currently not indexed&quot; or &quot;Crawled - currently not indexed&quot; list, the sitemap is one of the first places to look.</p><p>This tutorial walks through a full sitemap audit:</p><ol><li>Find every sitemap the site exposes.</li><li>Expand sitemap indexes and gzipped files into one URL list.</li><li>Check each URL for the problems that contradict “please index this”.</li><li>Fix them at the source, usually the CMS or the sitemap generator.</li></ol><h3>Step 1: Find the sitemaps</h3><p>Start with robots.txt. The Sitemap: directive can appear anywhere in the file, more than once, and it doesn&#39;t have to point to the same host:</p><p>If there’s no Sitemap: line, try the usual locations:</p><ul><li>/sitemap.xml</li><li>/sitemap_index.xml (Yoast and many other plugins)</li><li>/wp-sitemap.xml (WordPress core since 5.5)</li></ul><p>Also check Search Console under <em>Indexing → Sitemaps</em> to see which files were actually submitted. A missing Sitemap: line in robots.txt isn&#39;t an error, but adding it helps other crawlers find the file.</p><h3>Step 2: Expand everything into one URL list</h3><p>A sitemap is either a &lt;urlset&gt; (a list of pages) or a &lt;sitemapindex&gt; (a list of other sitemaps). Large sites nest them and often gzip them (.xml.gz). The protocol limits each file to 50,000 URLs and 50 MB uncompressed, so big sites end up with dozens of files.</p><p>For each URL, keep:</p><ul><li>loc, the URL itself</li><li>lastmod, if present</li><li>which sitemap file it came from, so you know where to fix it</li></ul><p>Watch for duplicates across files. The same URL listed in two sitemaps usually means two generators are running, for example a plugin plus a custom script.</p><h3>Step 3: Decide what counts as a problem</h3><p>A URL in a sitemap should pass all of these:</p><p>Returns 200 <strong>without</strong> redirecting</p><p>A redirecting URL isn’t the canonical one. List the final URL instead.</p><p>Not 4xx/5xx</p><p>You’re asking Google to index a page that doesn’t exist.</p><p>It directly contradicts the sitemap. The header version is easy to miss because it’s invisible in the HTML.</p><p>rel=&quot;canonical&quot; points to itself</p><p>If it points elsewhere, you’re submitting a duplicate.</p><p>Not disallowed in robots.txt</p><p>Google can’t crawl it to see the content.</p><p>lastmod is a valid W3C date and not in the future</p><p>Google has said it uses lastmod only when it&#39;s consistently accurate. A bogus date trains it to ignore yours.</p><p>HTTPS and on the right host</p><p>http:// or staging-host URLs in a production sitemap are common after migrations.</p><p>Two judgment calls:</p><ul><li><strong>Stale </strong><strong>lastmod</strong> (say, older than a year) isn&#39;t an error. It&#39;s worth reviewing on content-heavy sites, because it often means the date is frozen or the page is neglected.</li><li><strong>Canonical comparison</strong> should resolve relative canonicals and ignore trailing-slash differences, or you’ll get false positives.</li></ul><h3>Step 4: A script that does all of the above</h3><p>Here’s a compact, tested Python version (needs pip install httpx). It finds the sitemaps, follows nested indexes and gzip, and audits the first N URLs:</p><pre>python sitemap_audit.py example.com 200</pre><p>When I ran it against wordpress.org, it found 9 sitemap files, and the first audited URLs it flagged were /enterprise/... pages carrying noindex while still being listed in the sitemap. That&#39;s exactly the kind of contradiction this audit is meant to surface. (Whether those pages <em>should</em> be noindexed is a separate decision. The point is that the two signals disagree.)</p><p>Limitations of this script, so you know what to extend:</p><ul><li>It audits sequentially. For thousands of URLs, add async requests with low concurrency (around 5) and a clear User-Agent.</li><li>It reads every sitemap file before auditing. On very large sites (wordpress.org lists hundreds of thousands of URLs), cap the number of files.</li><li>Regex HTML parsing is fine for &lt;head&gt; tags in served HTML but isn&#39;t a real parser. It also doesn&#39;t run JavaScript, so canonicals or robots tags injected client-side won&#39;t be seen.</li><li>It checks robots.txt rules for Googlebot only.</li></ul><h3>Step 5: Fix problems at the source</h3><p>Patching the XML by hand rarely sticks, because the generator overwrites it. Instead:</p><ul><li><strong>Redirected URLs:</strong> usually an http→https, trailing-slash, or www mismatch between the CMS &quot;site URL&quot; setting and the real canonical host. Fix the setting, and every URL in the generated sitemap changes with it.</li><li><strong>404s:</strong> deleted posts or products that the generator still lists. Typical causes are caching plugins or a static sitemap file left behind from an old setup (check that /sitemap.xml isn&#39;t a stale file sitting in the web root).</li><li><strong>noindex pages in the sitemap:</strong> most SEO plugins exclude noindexed content automatically. If they don’t, a custom template or a per-page header is overriding them. Check the X-Robots-Tag header at the server or CDN level too.</li><li><strong>Canonical mismatches:</strong> often paginated, filtered, or parameterized URLs that canonicalize to a parent. Remove them from the sitemap rather than changing the canonical.</li><li><strong>Future or invalid </strong><strong>lastmod:</strong> usually a timezone bug or a &quot;now()&quot; default. Use the real content modification date.</li></ul><p>After fixing, resubmit the sitemap in Search Console and re-run the audit. Then schedule it, because sitemaps drift every time someone installs a plugin or migrates a section.</p><h3>Step 6: Automating it (optional)</h3><p>If you’d rather not maintain the script, I packaged this workflow as an Apify Actor: <a href="https://apify.com/pandabear/sitemap-seo-auditor"><strong>Sitemap Extractor &amp; SEO Index Audit</strong></a>. It’s paid (pay-per-event), so here’s exactly what it does:</p><ul><li>finds sitemaps via robots.txt Sitemap: lines, then falls back to /sitemap.xml, /sitemap_index.xml, /wp-sitemap.xml and other common paths</li><li>follows nested indexes and .xml.gz, and keeps lastmod, changefreq, priority, hreflang alternates and image/video counts</li><li>flags http-404/http-5xx, redirected, noindex (meta or header), canonical-mismatch, blocked-by-robots-txt, unreachable, stale-lastmod/future-lastmod/invalid-lastmod, duplicate-in-sitemaps, http-not-https and off-domain-url</li><li>writes an ISSUES CSV of only the problem URLs, plus a SUMMARY with a health score (the percentage of audited URLs that are indexable)</li></ul><p>Pricing from the README: $0.30 per 1,000 extracted URLs and $1.20 per 1,000 audited pages, so a full audit of 1,000 pages is about $1.50. You can set a max cost per run. Like the script above, it doesn’t execute JavaScript.</p><p>If you just migrated a site, it pairs with my earlier post, <a href="https://dev.to/andrewsmithzeng/how-to-find-and-fix-lost-pages-after-a-website-migration-2e52">How to find and fix lost pages after a website migration</a>. That one covers the old URLs that dropped <em>out</em> of the sitemap. This one covers the URLs that are <em>in</em> it but shouldn’t be.</p><h3>Checklist</h3><ul><li>[ ] All sitemap files found (robots.txt, common paths, Search Console)</li><li>[ ] Indexes and gzip expanded, duplicates found</li><li>[ ] Every URL: 200 without redirect, no noindex (meta <strong>and</strong> header), self-canonical, crawlable</li><li>[ ] lastmod valid and honest</li><li>[ ] Fixes made in the generator or CMS, not by hand-editing the XML</li><li>[ ] Resubmitted and scheduled to re-run</li></ul><p><em>Originally published at </em><a href="https://dev.to/andrewsmithzeng/how-to-audit-your-xml-sitemap-for-indexing-problems-plo"><em>https://dev.to</em></a><em> on October 26, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5eb5d206aa0d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to find and fix lost pages after a website migration]]></title>
            <link>https://medium.com/@andrewsmithzeng/how-to-find-and-fix-lost-pages-after-a-website-migration-b409f14dc416?source=rss-68b9760395fe------2</link>
            <guid isPermaLink="false">https://medium.com/p/b409f14dc416</guid>
            <category><![CDATA[technical-seo]]></category>
            <category><![CDATA[website-migration]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[seo]]></category>
            <dc:creator><![CDATA[pdbear]]></dc:creator>
            <pubDate>Mon, 26 Oct 2026 13:07:46 GMT</pubDate>
            <atom:updated>2026-10-26T13:28:37.437Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JuwvmcFzUjDvFVyB.png" /></figure><p><em>Disclosure: I build and sell two paid Apify Actors that automate parts of this workflow. They’re mentioned in step 6 as one option. Everything else in this post works with free tools. This article was drafted with AI assistance; the code and examples were tested.</em></p><p>A migration is the easiest way to lose search traffic you already earned. You redesign the site, change the CMS, move /blog/2019/my-post to /insights/my-post, and forget about a few hundred old URLs. Other sites still link to those URLs, and Google still has them indexed. After launch they return 404, or every one of them redirects to the homepage, and the rankings they held disappear.</p><p>The fix is simple to describe and tedious to do:</p><ol><li>Build a complete list of URLs the old site had.</li><li>Check what each one returns <strong>today</strong>.</li><li>Map every broken URL to its closest live equivalent with a 301.</li><li>Verify, deploy, and monitor.</li></ol><p>This post walks through each step with commands you can run right now.</p><h3>Step 1: Build the “old URL” inventory from several sources</h3><p>No single source has every URL, so combine a few:</p><ul><li><strong>Your old XML sitemap.</strong> If you still have a backup or a staging copy, export it. It’s the cleanest list, but it only has what the CMS chose to include.</li><li><strong>Google Search Console.</strong> <em>Indexing → Pages</em> and the <em>Performance</em> report (export the “Pages” tab) show URLs Google actually knew about and that actually got clicks. Those are the ones to protect first.</li><li><strong>Analytics.</strong> Export landing pages from the last 12–16 months.</li><li><strong>Backlink data.</strong> Any backlink tool (or GSC’s <em>Links</em> report) shows “top linked pages”. A linked URL that now 404s is wasting link equity.</li><li><strong>The Internet Archive’s Wayback Machine.</strong> This is the one people forget. It often has URLs that never made it into a sitemap: old campaign pages, docs from a previous product version, tag archives.</li></ul><h3>Pulling URLs from the Wayback Machine (free)</h3><p>The Internet Archive has a public <a href="https://archive.org/developers/wayback-cdx-server.html">CDX API</a> that lists every capture for a host. This query returns unique HTML URLs that were archived with status 200:</p><pre>curl -s &quot;https://web.archive.org/cdx/search/cdx?url=example.com&amp;matchType=host&amp;fl=original,timestamp&amp;collapse=urlkey&amp;filter=statuscode:200&amp;filter=mimetype:text/html&quot; &gt; wayback.txt</pre><p>Useful parameters:</p><ul><li>matchType=host means exactly that host. domain includes subdomains. prefix with url=example.com/blog/ limits it to one section.</li><li>collapse=urlkey removes duplicate captures of the same URL.</li><li>limit= and the showResumeKey/resumeKey parameters let you page through big sites.</li></ul><p>Two things to know before you rely on it:</p><ol><li><strong>It’s slow and flaky.</strong> Large hosts can take tens of seconds per page, and you will see 503/504 or “temporarily offline” responses. Retry with backoff instead of giving up.</li><li><strong>It’s noisy.</strong> You’ll get ?utm_source= and ?fbclid= variants, wp-json endpoints, login links, and so on. Normalize before you check anything:</li></ol><p>Dropping all query strings is a blunt choice. If your site uses ?id=123 as real page identity, keep those parameters instead.</p><p>Merge this list with your sitemap, GSC, analytics, and backlink exports, and de-duplicate. That’s your inventory.</p><h3>Step 2: Check what every old URL returns today</h3><p>For each URL, you want the status code, the final URL after redirects, and the number of hops. Be polite: low concurrency, a real User-Agent, and timeouts.</p><p>Then put each URL into one of these buckets:</p><p>The homepage bucket deserves its own mention. “Redirect everything old to the homepage” is a common migration shortcut, and Google generally treats irrelevant redirects to the homepage as soft 404s, so you lose the equity anyway. Detect it by checking whether final_url normalizes to the site root while the original path didn&#39;t.</p><h3>Step 3: Map each lost URL to its best replacement</h3><p>This is the part that takes the most human judgment. A good redirect target is the page that best satisfies the same intent, not the closest string.</p><p>A practical way to speed it up is to let fuzzy matching propose candidates, then review them:</p><p>live_urls should come from your <strong>new</strong> sitemap or a crawl of the new site, not the old list. Treat every suggestion as a draft:</p><ul><li>High score + same topic → accept.</li><li>Low score → open the archived page (https://web.archive.org/web/*/OLD_URL) to see what it actually was, then pick the target by hand.</li><li>Nothing equivalent exists → a parent category page is usually better than the homepage. If the content is truly gone and has no links or traffic, a 410 is an honest answer.</li><li>High-value page with no equivalent → consider restoring the content. The archived snapshot gives you the old title, headings, and text to start from.</li></ul><p>Write the result as a simple CSV: from,to,status.</p><h3>Step 4: Deploy the redirects</h3><p>Most platforms take a list in some form:</p><pre>Redirect 301 /old-pricing/ /pricing/ Redirect 301 /blog/2019/my-post/ /insights/my-post/</pre><pre>/old-pricing/ /pricing/ 301 /blog/2019/my-post/ /insights/my-post/ 301</pre><p>Cloudflare Bulk Redirects and WordPress plugins such as Redirection accept a CSV import.</p><p>Rules of thumb: point redirects at the <strong>final</strong> URL (no chains), use 301 for permanent moves, and keep the map in version control so the next migration doesn’t wipe it out.</p><h3>Step 5: Verify, then make sure the new sitemap is clean</h3><p>Re-run the Step 2 script against the from column. Every row should now resolve with one hop to the intended to URL and a 200.</p><p>Then audit the <strong>new</strong> sitemap. A migration often ships a sitemap that still lists URLs that redirect, return 404, carry noindex, or have a canonical pointing somewhere else. Each of these sends Google mixed signals and is a common reason for &quot;Crawled - currently not indexed&quot; in Search Console. For each sitemap URL, check:</p><ul><li>status code is 200 without a redirect</li><li>no noindex in &lt;meta name=&quot;robots&quot;&gt; or the X-Robots-Tag header</li><li>&lt;link rel=&quot;canonical&quot;&gt; points to itself</li><li>it isn’t disallowed in robots.txt</li><li>lastmod is a valid date and not in the future</li></ul><p>Finally, watch GSC’s <em>Pages</em> report and your 404 logs for a few weeks after launch. New 404s with referrers are usually links you missed.</p><h3>Step 6: Automating it (optional)</h3><p>Everything above is doable with the scripts in this post and a spreadsheet. If you’d rather not maintain the retries, paging, normalization, and matching yourself, I packaged the workflow into two Apify Actors. Both are paid (pay-per-event), so here’s exactly what they do and cost:</p><ul><li><a href="https://apify.com/pandabear/wayback-lost-url-finder"><strong>Wayback Machine URL Extractor &amp; Lost Page Finder</strong></a> covers steps 1–3 for the archive source. It pages through the CDX API with retries, filters noise, checks live status, and sorts URLs into categories such as lost, redirects-to-homepage, and unreachable. It suggests a replacement for each lost URL using the same fuzzy path similarity described above, with homepage and a score of 0 when nothing scores 0.6 or higher, and writes a from,to,score,status,category CSV. It can also recover the archived title, meta description, H1, and text. The README puts a typical 1,000 URLs with live checks at about $2.00.</li><li><a href="https://apify.com/pandabear/sitemap-seo-auditor"><strong>Sitemap Extractor &amp; SEO Index Audit</strong></a> covers step 5. It finds sitemaps via robots.txt and common paths, follows nested indexes and .xml.gz files, and flags 404s, redirects, noindex, canonical mismatches, robots.txt blocks, and lastmod problems. It outputs an ISSUES CSV. A full audit of 1,000 pages costs about $1.50.</li></ul><p>Limitations to know: the redirect suggestions are string similarity, not semantic matching, so you still need to review them. The sitemap auditor doesn’t execute JavaScript, so it reads the HTML &lt;head&gt; as served. And the Wayback Machine only knows about pages it happened to capture.</p><h3>Checklist</h3><ul><li>[ ] Old URL inventory from sitemap, GSC, analytics, backlinks, and Wayback CDX</li><li>[ ] Normalized and de-duplicated</li><li>[ ] Live status for every URL, bucketed (lost / soft 404 / chain / error)</li><li>[ ] Redirect map reviewed by a human, no chains, no blanket homepage redirects</li><li>[ ] Deployed and re-verified</li><li>[ ] New sitemap audited: only 200, indexable, self-canonical URLs</li><li>[ ] 404 monitoring for the first few weeks</li></ul><p>If you’ve done a migration that went sideways, I’d like to hear what you missed. That’s how this checklist got longer.</p><p><em>Originally published at </em><a href="https://dev.to/andrewsmithzeng/how-to-find-and-fix-lost-pages-after-a-website-migration-2e52"><em>https://dev.to</em></a><em> on October 26, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b409f14dc416" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>