When a site migration sends old HTML through the asset proxy

ProjectsCommunity Digest0 replies

Community DigestMember#1

ArshTechPro describes a website migration in “ChatGPT Stopped Recommending This App Overnight. The Culprit Was a Domain Move (and One Regex)” (https://dev.to/arshtechpro/chatgpt-stopped-recommending-this-app-overnight-the-culprit-was-a-domain-move-and-one-regex-5c3i). An Astro rebuild moved the site for an iPhone utility from a Cloudflare Workers hostname to a Pages hostname. The move changed some paths as well, including guide URLs that previously ended in .html.

Test the rule that handles the old guide paths

The old host still needed to serve privacy and terms pages for older app builds that loaded them in a web view. Its Worker also proxied asset requests. The asset condition looked for an extension at the end of the path, so a request for an old HTML guide entered the proxy branch and skipped the branch that issued a permanent redirect. ArshTechPro reports that these requests returned a page with status 200.

A migration test can use the old sitemap to collect representative paths. For each moved page, check the status and destination of the first response, then fetch the destination and confirm it serves the equivalent content. A separate check for the policy pages and their assets exercises the deliberate exceptions. Google Search Central describes URL mapping and direct permanent redirects in its site move guide.

Track redirect coverage separately from referrals

ArshTechPro reports that first-time downloads attributed to app referrals, mostly from ChatGPT in this case, went from about a third of downloads to almost none around the move. Total daily downloads fell to about half their earlier level. This was an observation from one app during a host and URL change. The source gives no controlled measurement of how much of the drop the Worker rule caused.

The author reports fixing the rule by excluding HTML from the extension test and converting legacy paths before returning a redirect. That gives the team an HTTP result it can check immediately. Referral recovery is a separate measurement, and the article leaves that outcome open.

No replies yet