HTML to Astro Migration

We rebuild a hand-written HTML website as an Astro project, using components (parts such as a header or a card, written once and reused on every page). Astro is a framework for building content-driven websites. It is not a CMS (the editing screen a team uses to change content), so we agree how your content will be edited before we write any code.

A code window showing angle brackets and curly braces

01Choose

Choose what you want to change

Do you need a cleaner structure, a way to edit content, or rebuilt scripts and forms? Pick one, several or the whole project and we will show how each part works on Astro.

Where this startsOur HTML site repeats the same code on every page, and we want a cleaner build without losing the ability to update content.

Choose one part, several parts or the whole project
  • An inventory of layouts, scripts, forms and addresses
  • A decision on how content is edited afterwards
  • The Astro build with components and content collections
  • Private test copy, redirects, launch and a monitoring plan

Check first: We confirm the host you plan to use and who controls the domain.

Next: Bring the site address, your editors and the scripts you know about.

    • Who updates content, how often and what they update
    • Editing from project files compared with a headless CMS
    • A trial edit from change to published page
    • A note on how long an update takes to appear

    Check first: We confirm who will edit the site and how comfortable they are with technical tools.

    Related: Headless CMS Development, Website Migration Services

    Next: List the people who edit the site and the changes they make most often.

    • A shared layout for header, menu and footer
    • Reusable components for cards, banners and lists
    • Groups of repeated pages set up as content collections
    • A review of which CSS is worth reusing

    Check first: We confirm which page layouts repeat and which are genuine one-offs.

    Related: Custom Website Design, Next.js Development

    Next: Send the HTML files or live address and any design files you have.

    • A list of forms, tracking tags and widgets in the old code
    • A form route that sends messages to the right inbox
    • Scripts kept, rewritten or removed one by one
    • Testing of each rebuilt feature in the finished build

    Check first: We confirm where each form sends its messages today.

    Related: JavaScript Development, Headless CMS Development

    Next: Tell us which forms and scripts the business could not do without.

In plain terms

Component
A reusable part of a page, such as a header or card, written once and used everywhere.
Headless CMS
A separate editing system whose content the website fetches and displays.
Content collection
A group of entries that share the same fields, such as articles.
Build step
The process that turns the project into the finished pages visitors receive.

02Editing

Choose how content will be edited afterwards

Astro builds pages ahead of time, and the docs say static pages need a full-site rebuild before a content change appears. So the editing method is a real decision, not a detail.

Files in the project, such as Markdown

Suits

A developer or a technical editor

Trade-off

Each change goes through a rebuild

WordPress as headless CMS

Suits

Teams who already know WordPress

Trade-off

WordPress must stay running and its content be checked

A headless CMS such as Sanity, Strapi, Directus or Storyblok

Suits

Editors who want a structured editing screen

Trade-off

A second system to set up and look after

These products are options to compare, not recommendations made in advance. Our Headless CMS Development service covers the comparison.

03Components

Turn repeated HTML into components

Our assessment sorts the old files into reusable parts.

  • Header, menu and footer become one shared layout
  • Cards for services, products or articles become a component fed with data
  • Pages with identical fields, such as articles, become a content collection (a group of entries that share the same fields)
  • Useful CSS and scripts are kept and loaded only where a page needs them
  • Forms are rebuilt, because static pages have no built-in way to receive messages

Nothing is converted automatically. We review the markup and rebuild it.

04Testing

Test the finished build, not just the files

Astro has a build step (the process that turns the project into finished pages). We test that output, because it is what visitors receive. We check every template, mobile layouts, links and each script we kept.

Then we run an editing trial from end to end. An editor changes a piece of content, the site rebuilds and the change appears. If that takes more steps than your team will accept, we change the editing method now rather than after launch.

05Launch

Plan redirects and a home for the files

Astro lets us list redirects in its configuration, but what visitors receive depends on how the site is built. A static build with no adapter (the add-on that lets Astro run on a host with server code) forwards visitors with a meta refresh, an instruction inside the page, and does not support status codes. So we plan permanent redirects at the hosting or adapter layer and check the real response for each old address. A redirect is how the old address forwards visitors to the new one. A redirect will not override an existing page at the same address, so we check for clashes. Old addresses that end in .html need a mapping too.

The finished site is a set of files, so it can run on many hosts. We agree the host, a private test copy and who changes the domain settings at launch. Search performance is monitored after launch, with no promise about rankings. For a larger application on a related framework, see Next.js Development.

Questions about moving HTML to Astro

Is Astro a content management system?

No. Astro is a web framework. Editing needs a separate arrangement, such as files in the project or a headless CMS.

Can we keep our CSS and JavaScript?

Partly. We keep what is clean and still needed, and rebuild what depends on repeated markup or old libraries.

Will editors need a developer to publish?

It depends on the editing method. With files, a developer is usually involved. With a headless CMS, editors can work in their own screen, but updates still need a rebuild or a refresh set-up.

Will the Astro site keep our old addresses?

Yes, where we choose to keep them. Others get a redirect, and we record each choice in the address map.

Glossy 3D phone with two chat bubbles

Move to Astro with an editing plan

Send us your site, tell us who updates content and how often. We will assess the files and recommend an editing method alongside the rebuild. See Website Migration Services for the other routes.

Privacy choices

Choose what this website may load. Your choice is saved on this device for up to 180 days. Privacy Policy

Turning a choice off stops further use of that optional service on this site. It does not take back information already sent, and we cannot delete cookies that other services set in your browser.