Protect search visibility during an Astro migration by preserving valuable URLs and content, carrying across metadata, and testing redirects, forms, and tracking on the deployed site. Astro can serve readable HTML and support an organized publishing workflow, but changing frameworks does not guarantee higher rankings. Keep a useful WordPress or Webflow site if its current problems can be fixed for less disruption.
TL;DR
- Keep important URLs when possible; map each changed URL to its closest relevant replacement.
- Test the deployed host's HTTP redirects: a static Astro build can generate an HTML refresh instead of a server-side 301.
- Choose an editing workflow before moving content; Astro collections can use local files or a remote content source.
- Test each lead form through to its destination, including tracking, consent, error handling, and confirmation.
- Hapy's migration service starts at $1,499 for agreed pages; its two-week plan begins after scope, content, and access are ready.
- Google recommends keeping redirects for at least one year; a small or medium site move can take weeks to process.
- For good Core Web Vitals, Google's thresholds are LCP at most 2.5 seconds, INP at most 200 milliseconds, and CLS at most 0.1 at the 75th percentile.
This guide covers the Astro implementation decisions behind a marketing-site move. Use the broader website migration SEO checklist to audit the current site and inventory its important pages before committing to a rebuild.

Is Astro the right move?
Choose Astro when most pages are content-led, the team needs reusable templates, and someone can own the build and deployment. Astro’s islands architecture renders page HTML while interactive components can load separately. That can reduce unnecessary client-side code, but actual speed depends on the site’s images, scripts, hosting, and implementation.
If editors depend on WordPress, keep it as a content source or choose another CMS with an editor workflow they can use. Astro can load content from local files or a remote source; it does not require a marketing team to edit code. If the existing platform meets the team’s needs and its problems are limited to a few plugins or templates, repair it first. The Astro CMS comparison explains the tradeoffs.
Will Astro improve Core Web Vitals?
Astro can reduce the JavaScript a content-led page sends to the browser, but it cannot guarantee a passing score. A large hero image, slow hosting, a third-party tag or a layout shift can still make the new site slower. Measure the existing pages before deciding that a migration is the fix.
Google’s Core Web Vitals guidance uses these thresholds for a good experience at the 75th percentile of real visits, assessed separately for mobile and desktop:
| Metric | What it describes | Good threshold | Migration check |
|---|---|---|---|
| Largest Contentful Paint (LCP) | How quickly the main content appears | 2.5 seconds or less | Check the hero image, server response and render-blocking resources. |
| Interaction to Next Paint (INP) | How quickly the page responds to interactions | 200 milliseconds or less | Test menus, filters and forms; inspect heavy client-side scripts. |
| Cumulative Layout Shift (CLS) | How much visible content moves unexpectedly | 0.1 or less | Reserve space for images, embeds, banners and late-loading fonts. |
Compare the same priority page types and devices before and after launch. PageSpeed Insights can show both real-user field data and a controlled lab test when data is available. The lab test helps diagnose a problem; it is not a substitute for the experience of actual visitors. New or low-traffic pages may not have enough field data, so record that gap instead of calling the result a pass.
For example, if a page’s mobile LCP was 4.0 seconds before migration and 2.3 seconds after the new site has enough comparable field data, the measured improvement is 1.7 seconds. That is an illustrative calculation, not a Hapy result; record the actual pages, device, measurement window and other changes before attributing an improvement to Astro. Google considers page experience alongside other signals, and good scores do not guarantee higher search rankings.
What should a buyer budget and expect?
Hapy’s Astro migration service starts at $1,499 for the rebuild, migration, and launch of agreed pages. Its two-week plan starts after scope, content, and access are ready; Hapy confirms the date after reviewing the site. Hosting and paid tools are separate. This is Hapy’s published starting offer, checked November 10, 2026, not a market average or a quote for every site. Hapy has a commercial interest in this service.
The price and schedule change with the number of page templates, the quality of exported content, redirects, custom search or forms, integrations, and the chosen editing workflow. A site with 300 articles using one template is a different job from 300 individually designed pages. Ask the supplier to price content cleanup, third-party fees, testing, support, and work outside the agreed page list separately. The Astro migration cost guide gives a wider cost comparison.
A practical two-week plan for an agreed small scope might allocate the first week to inventory, templates, and content, then the second to integration testing, review, and launch. This is an illustration of sequencing, not a promise for a complex site. Google says that processing a small or medium site move can take a few weeks, with larger moves taking longer. That search-processing period is separate from the build schedule. Google’s site-move guidance also warns that search visibility can fluctuate during a move.
Which URLs and content should move?
Export the current URLs, status codes, titles, descriptions, canonicals, page content, images, and internal links before building. Add analytics landing pages, forms, downloads, and pages that generate enquiries; a sitemap alone may omit useful pages. Record each URL’s action and owner.
| Old URL decision | New site action | Launch check |
|---|---|---|
| Keep the page and path | Publish the equivalent content at the same path. | The production URL returns 200 and has the intended canonical. |
| Move the page | Redirect the old path to the closest relevant new page. | The old URL returns a permanent redirect to the final 200 URL. |
| Retire with no equivalent | Return an appropriate 404 or 410; do not send every retired page to the homepage. | The response matches the agreed inventory. |
Preserve useful headings, body copy, images, publication dates, and links while migrating. Treat a separate content rewrite as a separate decision so a search change is easier to investigate. Google recommends keeping redirects for at least one year and updating internal links to their new destinations. Its guidance also says not to redirect unrelated pages to a single irrelevant destination.
How do redirects work in Astro?
Configure permanent redirects at the host or through an adapter that produces the required server behavior. Astro’s routing documentation says a static build without a supported adapter can output an HTML meta refresh; the configured status code is not used by the server for that HTML file. A browser reaching the destination therefore does not prove the old URL returned a 301 or 308.
Test the deployed host with a header request. For each changed priority URL, confirm a 301 or 308 response, the correct Location, and a final 200 page. Check both before launch where the host permits it and after the domain switches. Avoid redirect chains and loops. Preserve the chosen trailing-slash convention, and ensure canonical tags, sitemap entries, and internal links use the same production URL.
How should content and metadata be modeled?
Use a shared Astro layout or SEO component to render each page’s title, description, canonical, robots directive, and social metadata from its content record. This keeps a body-copy migration from silently losing the fields that described the old page. Preserve the existing values when they still describe the page; do not change every title simply because the site moved.
For example, a migrated article record can keep its reader-facing title separate from its search title and preferred URL:
title: "Planning a website migration"
metaTitle: "Website migration planning guide"
metaDescription: "A practical guide to planning a website move."
canonical: "https://example.com/journal/migration-planning/"
datePublished: 2024-03-21
This is an example data shape, not a required Astro schema. A shared component must still use the fields correctly, and the production canonical must match the chosen URL.
Astro’s content collections support schema validation for local or remotely loaded entries. For example, a team can require a title, description, and publication date before a journal page builds. That validates the presence and format of fields; an editor still has to judge whether the text is useful and accurate. Give the handover owner the content source, publishing steps, preview process, and a way to correct an entry.
For structured data, preserve accurate information that matches visible content and use Google’s current structured-data guidance. Validate representative templates after deployment. Structured data is not a promise of a rich result. Visible questions and answers can help readers without adding FAQPage markup.
How do forms, images, and sitemaps survive the move?
Forms: Choose a hosted form service or an Astro server endpoint that fits the hosting and privacy requirements. Astro documents server-handled forms; a static page still needs somewhere to receive and process a submission. Send a test from the live form and confirm the right person or CRM receives it. Check success and error messages, spam controls, consent, and the analytics event. Remove test data according to the team’s normal process.
Images: Move article and page assets with their references. Preserve meaningful alt text and dimensions, and test important images at mobile sizes. Astro’s image guide distinguishes local images that its components can process from files served directly from public/. Do not assume a moved image is optimized merely because the new site uses Astro.
Sitemaps: The @astrojs/sitemap integration can generate a sitemap from statically generated routes, but it cannot generate entries for dynamically rendered routes in server mode. Check dynamic or CMS-driven routes against the actual deployed inventory and supply missing URLs through an appropriate sitemap. Include canonical, indexable production URLs; exclude drafts, redirects, private previews, and pages intentionally marked noindex. Fetch robots.txt and the sitemap on the production host and check that neither points to staging.
What should be checked at launch and handover?
Use a staging site to compare representative page types before the switch. Keep private previews access-controlled. At launch, remove any staging-only indexing restrictions from pages intended for search. Then check the production host:
- Open the most important landing pages and confirm their content, canonical URLs, metadata, images, and internal links.
- Test changed old URLs for permanent redirects and correct destinations. Check the production sitemap and robots file.
- Submit a test enquiry through each important form and verify the destination and analytics event.
- Check representative mobile and desktop pages for layout, navigation, and readable content. Test the editor’s normal publish and preview workflow.
- Record the baseline and monitor Search Console, crawl errors, key landing pages, and enquiry reporting after launch. Investigate changes before attributing them to the framework.
The handover should identify who owns the repository, hosting, domain and DNS access, CMS, redirects, forms, analytics, support, and rollback plan. A successful HTTP response does not prove Google has indexed the new page; use URL Inspection for Google’s recorded state and allow time for recrawling.



