Static sites have a natural advantage in search. Pages are served quickly, the HTML is complete, and the structure is predictable. That advantage disappears quickly if the details are wrong. Here is the checklist we use on every Astro site.
Pages render complete HTML
Search engines read the HTML they receive. Check that titles, headings and main text appear in the page source, not only after JavaScript runs. Astro renders pages to HTML at build time, which is why this is usually the default.
Unique titles and descriptions
Every page needs a unique title and meta description that describe its content. Duplicate titles across templates are one of the most common problems we fix. Keep titles focused and descriptions close to the length search results show.
One clear heading structure
Use one H1 per page that states the main topic. Use H2 for major sections and H3 for items inside them. Do not choose headings for their size, because the styling should come from CSS, not from the heading level.
Canonical URLs
Each page should declare one canonical URL. This prevents trailing-slash and parameter duplicates from competing with each other. Decide on one URL format for the whole site and enforce it with redirects.
Sitemap and robots
Generate a sitemap that lists the pages you want indexed, and reference it in robots.txt. Exclude private or thank-you pages. Check the sitemap after each release so new pages are included.
Structured data where it fits
Organisation, article and service information can be marked up with JSON-LD. Use only the types that match the page, and make sure the marked-up information is visible on the page as well.
Images and performance
Give every meaningful image descriptive alt text, serve modern formats, and set width and height to prevent layout shifts. Static sites are fast by default, but large unoptimised images still slow them down.
Redirects when URLs change
When a page moves, redirect the old address to the new one with a permanent redirect. Keep a list of changes, so you can check that important old pages still lead to the right content.
Measure after launch
Connect Search Console, check indexing reports, and watch Core Web Vitals. The first weeks reveal problems that a checklist cannot catch, and the fixes are usually small once you see them.
