# Website migration SEO checklist

## Environment, date and observation source

[Complete; mark unknowns and exceptions explicitly.]

## Old URL baseline and recovery procedure

[Complete; mark unknowns and exceptions explicitly.]

## Old URL, locale, purpose and incoming links

[Complete; mark unknowns and exceptions explicitly.]

## Action: retain, redirect, remove with rationale

[Complete; mark unknowns and exceptions explicitly.]

## New equivalent URL and agreed HTTP status

[Complete; mark unknowns and exceptions explicitly.]

## Owner and check date

[Complete; mark unknowns and exceptions explicitly.]

## Status, Location and complete terminal response

[Complete; mark unknowns and exceptions explicitly.]

## Canonical, hreflang, internal links and sitemap

[Complete; mark unknowns and exceptions explicitly.]

## Forms, methods, cookies, payments and new transactions

[Complete; mark unknowns and exceptions explicitly.]

## Release condition, exceptions and rollback trigger

[Complete; mark unknowns and exceptions explicitly.]

## Fresh check and post-launch monitoring

[Complete; mark unknowns and exceptions explicitly.]

## Editable URL map

| Old URL | Locale | Action | New equivalent URL | Expected status | Owner | Evidence |
| --- | --- | --- | --- | --- | --- | --- |
| [fill] | [fill] | [fill] | [fill] | [fill] | [fill] | [fill] |

## Reproduce the local HTTP example

Requires Node.js 22+. Save the code as migration-fixture.mjs in a new empty directory and run node migration-fixture.mjs. It uses a 127.0.0.1 server, creates before-traces.json and after-traces.json, then stops. Existing files are not overwritten. Load the files into the Reproleaf redirect-chain checker. Before: two chains ending in 404; after: two direct 301 redirects ending in 200.

```js
import {createServer} from 'node:http';
import {writeFile} from 'node:fs/promises';
let phase='before';
const server=createServer((request,response)=>{
 const locale=request.url.split('/')[1];
 if(!['ru','en'].includes(locale)){response.writeHead(404);response.end();return;}
 if(request.url.endsWith('/old')){response.writeHead(301,{Location:'/'+locale+(phase==='before'?'/intermediate':'/new')});response.end();return;}
 if(request.url.endsWith('/intermediate')){response.writeHead(301,{Location:'/'+locale+'/new'});response.end();return;}
 response.writeHead(request.url.endsWith('/new')&&phase==='after'?200:404,{'Content-Type':'text/plain'});response.end(phase==='after'?'Migration fixture page':'Not found');
});
await new Promise(resolve=>server.listen(0,'127.0.0.1',resolve));
const base='http://127.0.0.1:'+server.address().port;
try{
 for(const current of['before','after']){
  phase=current;const traces=[];
  for(const locale of['ru','en']){
   const startUrl=base+'/'+locale+'/old',hops=[];let url=startUrl;
   for(let hop=0;hop<5;hop++){
    const response=await fetch(url,{redirect:'manual',signal:AbortSignal.timeout(5000)}),location=response.headers.get('location');
    hops.push({url,status:response.status,...(location?{location}:{})});await response.arrayBuffer();
    if(!location)break;url=new URL(location,url).href;
   }
   traces.push({startUrl,hops});
  }
  const file=current+'-traces.json';await writeFile(file,JSON.stringify({traces},null,2),{flag:'wx'});console.log(file);
 }
}finally{await new Promise(resolve=>server.close(resolve));}

```
