Website & application migration in Edinburgh
I migrate sites from WordPress, Joomla, Drupal, Angular, Vue and other technologies to Astro and Next.js. I plan each migration to keep SEO, content and features intact and switch over in an agreed window. I work alone and have years of experience with both legacy and modern stacks.
- I have had a wordpress.org account since 2006.
- I contributed to WordPress core for versions 7.0 and 7.1.
- I maintain 30 plugins on wordpress.org.
- I organise and speak at WordCamps.
- I have attended every WordCamp Europe from 2017 to 2026.
A UK public-sector website that gets replaced leaves two things behind: a body of published pages that the public record may need, and a domain name that other people can misuse if it is neglected. I am Mariusz Szatkowski, a developer in Gdynia who works with clients remotely and in writing. I build the Next.js or Astro site and the redirect map. Which pages are public records, and which archive is the right one, are for your information management team.

Old Town skyline in Edinburgh, a view of the city and not a client reference. Photo by Anthony O’Neil via Geograph, CC BY-SA 2.0, hosted on Wikimedia Commons.
Does the UK Government Web Archive cover my site?
Only some sites. The National Archives says the UK Government Web Archive (UKGWA) collects, case by case, websites from:
- UK government departments, including content published on GOV.UK
- non-departmental public bodies, agencies and delivery channels
- royal commissions, public inquiries and other short-term bodies sponsored by government departments
- NHS websites that are national in focus
It adds that under the Public Records Act 1958, organisations responsible for public records must transfer them for permanent preservation, which includes web pages and other online content, and that selecting and transferring web pages to UKGWA can help meet that obligation. If a site is not suitable, the National Archives points to the UK Web Archive instead.
Edinburgh is a Scottish city, and a Scottish public authority under the Public Records (Scotland) Act 2011 follows a different route, through National Records of Scotland. That route is on the Glasgow migration page. This page is for bodies that fall into the UKGWA list above, for example a UK government body with an Edinburgh office.
When do I contact the web archive?
The guidance gives three moments: when you are building a new website or making major updates to an existing one, when your site is not already in the archive, and when you are closing the site or a social media channel. Check first with the bookmarklet or the A to Z list. If the site is already there, nothing is needed unless it is closing or being relaunched. The archive usually captures a site twice a year during its life and wants a call before the final version.
A Next.js or Astro migration is a relaunch. The first email to the archive team gives the site name and address and the date the site closes or relaunches. They confirm eligibility, timescales and any early problems.
How does the archiving of a closing site run?
The National Archives describes five steps:
- You contact the archive with the site address and the closing or relaunch date.
- The archive crawls the site. The site must stay live and reachable to the crawlers for the whole capture, and content editing should be frozen where possible, because pages added or removed during or after the crawl of that area are not preserved.
- The archive publishes the capture at a temporary address, sends a note on problems, and asks you to check it and report issues.
- After you confirm in writing, it publishes the site at a permanent address. New archived sites are published on a Thursday.
- The site is added to archive search, which can take several months, and a description goes into Discovery, the National Archives catalogue.
The whole process can take several weeks depending on size and complexity. That is a scheduling fact for a migration: the old site stays live and frozen until the archive has finished, so the launch date of the new site is set behind the archive’s timetable, not the other way round.
What must the old site look like to be archived well?
The technical page is written for developers. These points matter most for a migration:
- The crawlers (run by MirrorWeb) ignore robots.txt. Anti-bot protection, rate limiting or a web application firewall must let them through.
- An XML sitemap speeds up capture, and a human-readable HTML sitemap helps users of the archived copy.
- Keep content under one root URL. Documents on other domains, such as cloud storage or newsletter platforms, are unlikely to be captured.
- Content on file-sharing platforms such as SharePoint, Google Docs or Box cannot be captured, so the files should be available as downloadable files on the root domain.
- Orphaned content, which is not linked from within the site, is not captured unless you supply a list of its URLs as a sitemap.
- Links inside PDF, Word and Excel files are not followed, so the linked resources need ordinary HTML links too.
- Content that relies on client-side scripting, POST requests or Ajax may not be captured, and the guidance recommends progressive enhancement and alternatives in plain HTML.
- Content behind a login cannot be archived, even if you provide credentials.
- Backups and database dumps are not accepted, only crawled snapshots.
- Meaningful URLs help later redirects to the archive.
The same page asks for a clear copyright statement on the site, because the archive needs Crown copyright or licences from third-party holders.
Frameworks come into this on one point I can state from their documentation. Astro prerenders pages to static HTML at build time by default, and Next.js can do a static export with one HTML file per route. Static HTML in the first response is what a crawler reads without running scripts. I check the new site by fetching key pages with scripts off and comparing the text.
How do I redirect removed pages to the web archive?
The National Archives has a separate page for developers. Its recommendation:
- Do not redirect every removed page to the archive. First check whether the requested URL has a successful capture, using the archive’s CDX index as part of your 404 and 410 logic.
- If a capture exists, show a “Page no longer exists” response that links to the archived version. If not, show the normal 404 page.
- Return 410 when content has been deliberately removed and a valid capture exists. Return 404 when the page cannot be found, no capture exists, the lookup fails or the URL was never archived.
- If the CDX service is unavailable, serve the normal 404. Archive availability should not become a dependency for error pages.
- The guidance suggests showing the capture date to users, and keeping the archive configuration outside application code.
The page describes the request as the original URL plus output=json, filter=status:200, limit=1 and sort=reverse, and notes that a timestamp in the response means a capture exists. Take the endpoint path from that page when you build it, because its examples are not consistent about the path. The National Archives publishes its own implementation in Python on GitHub.
This sits beside the ordinary redirect map. Old URLs that have a replacement get a permanent redirect. In Next.js, redirects in next.config.js with permanent: true produces a 308. In Astro, the redirects key in astro.config.mjs writes 301 by default, and a static build to HTML files writes pages that the server does not serve with that status.
// next.config.js
module.exports = {
async redirects() {
return [
{
source: "/publications/:slug",
destination: "/research/:slug",
permanent: true,
},
];
},
};Removed pages with no replacement fall through to the 410 or 404 handler described above.
What does GOV.UK say about the old domain?
Two GOV.UK pages apply if the site is on a .gov.uk domain. The page on stopping use of a domain says not to simply stop paying the renewal fee. Before you decide, check that:
- all subdomains are no longer required
- no other public sector organisation uses services on the domain
- the domain is not used to send email
- sensitive information is not passing through it
Then there are two options. You can keep the domain and protect it: stop it sending email, renew certificates, renew the domain every two years or it will be suspended, apply fixes the Domains Team asks for and monitor it. Or you can ask your supplier to delete it from the .gov.uk registry. Deletion means websites and email on it stop working, links pointing to it stop working, and nobody else can take it. You should get written confirmation that the domain and its records are removed from the registry and unused zone records removed from all name servers.
The page on keeping a domain secure matters during the cutover itself. It recommends registry lock, renewing on time, and checking that name servers are valid, active and responding. A host change often means new name servers, and it asks for at least two, resolving to different IP addresses, with delegation and authoritative records that match. It also recommends regular backups of the DNS zone.
The National Archives’ own page on domains for closing websites says that when a team disbands, responsibility becomes unclear and domains often lapse, that anyone can usually buy a lapsed domain, and that it can take on the domain at closure and redirect users to the archived site. Whether that offer fits your site is for the archive team and your domain registrant.
If your domain is not .gov.uk, the GOV.UK domain pages do not apply to it, and your own registrar’s rules do.
A checklist for a UK public-sector relaunch
- Check whether the old site is in UKGWA, and contact the archive team with the relaunch date.
- Allow for several weeks of archive time before the old site goes offline.
- Freeze editing on the old site during the capture.
- Let the archive crawlers through any firewall or bot protection.
- Publish an XML sitemap and a list of orphaned and hard-to-reach URLs.
- Put important documents on the root domain as downloadable files.
- Build the redirect map: permanent redirects where a replacement exists, 410 or 404 handling for the rest.
- Check name servers, registry lock and renewal dates before the DNS change.
- Decide with the domain registrant whether to keep, transfer or delete the old domain.
How does a project run?
- You send the address of the old site, the date you need it replaced and the name of whoever manages the domain. I reply with a written estimate at no cost.
- I list the open archive and domain questions with an owner for each, and agree a launch date that sits behind the archive timetable.
- I build the new site and the redirect map on staging, and you check the 410 and 404 handling with a list of removed URLs.
- After you approve in writing, I switch DNS and check the redirects against the map.
I need the current sitemap, a crawl of the old site and access to DNS. For platform questions see Astro developer and the main migration page.
Send me the old site
If you manage a UK public-sector website with an Edinburgh team, send the address, the relaunch date and the registrant of the domain through the contact form. A written estimate follows without a fee, and it will show which old URLs need a 410 handler and which get a permanent redirect. I am not a lawyer: whether your site is a public record and which archive takes it stay with your information management team.
Selected projects
Examples of my work.
E-commerce Development: nolaclub.pl
nolaclub.pl is an online store for nail polish and cosmetics distribution, with a product catalogue, checkout flow, and technical SEO.
E-commerce Development: Norwegian housing estate
osiedlenorweskie.pl is a website for a housing estate in Koszalin, presenting the place, architecture, and practical information.
E-commerce Development: PARTNERSTWO IOS/ANDROID APP
The mobile app, available at Google Play, was developed for NSZZ Solidarność to achieve the key objectives of a project promoting good practices in sustainab...
See also in Great Britain
Need this service: Next.js / Astro migration in Edinburgh?
Describe your project by e-mail. I reply within 24 hours.
Describe your projectExplore other WordPress services and knowledge base
Migration to Astro, Next.js, and headless WordPress.
WooCommerce sync with ERP and wholesale systems.
Business process automation around WordPress and company systems.
Library of concrete automation use cases.
Headless WordPress, Sanity, Strapi, and Contentful with Astro or Next.js.
Astro, MDX, edge delivery, and Core Web Vitals measured on real traffic.
Custom WordPress engineering and architecture.
Scalable headless, ERP, and AI architecture for enterprise.
Related categories
Supporting articles

Six to sixteen weeks for typical engagements, with a four-phase shape: discovery, scoping, build and cutover, tuning. The variables are catalogue size, integration count, URL preservation, and editorial team readiness, not framework choice.

A definitive 4-year Total Cost of Ownership (TCO) analysis, real-world Core Web Vitals benchmarks, Astro 7 GraphQL APQ architecture, and a 10-point executive decision matrix for choosing between decoupled and traditional WordPress.

The Shopify Plus vs WooCommerce headless decision in 2026 is no longer a binary "platform vs custom" trade-off. Both can run headless, both integrate AI, both ship at the edge. The real axes are control, total cost over five years, and exit strategy. This article walks the matrix with confirmed platform facts.