Semantic HTML & unique metadata
Ship one clear <h1> per page, logical <h2>/<h3> hierarchy, unique <title> and <meta description>, and explicit canonical URLs.
Review SEO pillarsIllustration · not connected to your accounts
SEARCH ENGINE OPTIMIZATION · TECHNICAL + CONTENT FOUNDATION
Search Engine Optimization (SEO) is the discipline of making every page fast to crawl, unambiguous to index, and genuinely useful for the query someone typed. Pre-built static HTML on Cloudflare Pages solves half of technical SEO out of the box.
TECHNICAL SEO WORKFLOW
Ship one clear <h1> per page, logical <h2>/<h3> hierarchy, unique <title> and <meta description>, and explicit canonical URLs.
Review SEO pillarsIllustration · not connected to your accounts
Maintain an up-to-date sitemap.xml, clean robots.txt, apex/www 301 canonical redirect, and consistent trailing slashes.
Copy Astro head & redirectsIllustration · not connected to your accounts
Pre-built HTML, sized images with explicit width/height, lazy-loaded media, and zero unnecessary JS bundles keep LCP and CLS crisp.
Compare static vs CMS SEOIllustration · not connected to your accounts
Submit sitemap.xml in Google Search Console, inspect priority URLs, and protect legacy rankings with edge 301 rules.
Open Search Console guideIllustration · not connected to your accounts
6 NON-NEGOTIABLE TECHNICAL SEO PILLARS
Every page emits a unique <title> (~50–60 chars), clear meta description (~140–160 chars), Open Graph tags, and a self-referencing rel="canonical" pointing to your single preferred HTTPS host (for example, apex https://yourdomain.com/ with www 301-redirected).
Use genuine <header>, <nav>, <main>, <article>, and <footer> landmarks with one <h1> and sequential <h2>/<h3> subheadings — no heading-level skips for styling.
Static HTML served from Cloudflare's edge eliminates slow PHP/database TTFB. Set explicit width and height on images, optimize WebP/AVIF assets, and avoid layout-shifting banners.
List only clean HTTP 200 canonical pages in sitemap.xml (no 301 redirects, 404s, or noindex pages), reference the sitemap URL inside robots.txt, and keep `/api/` endpoints disallowed.
When migrating from WordPress, Wix, or Squarespace, map every changed slug in public/_redirects as a permanent 301 redirect executed at the Cloudflare edge before HTML is served.
Connect hub pages, service pages, and supporting guides using descriptive link text (never generic "click here") so users and crawlers understand site structure within 2–3 clicks of the homepage.
STATIC ASTRO VS. LEGACY CMS
| SEO Signal | Static Astro + Cloudflare Pages | Database CMS / Heavy JS Builder |
|---|---|---|
| HTML availability to Googlebot | 100% pre-rendered static HTML on first response | Server PHP assembly or delayed JS rendering queue |
| Metadata & canonicals | Deterministic layout props checked by automated tests | Plugin conflicts, tag-page bloat, duplicate archives |
| 301 redirect speed | Edge-executed via public/_redirects (~ms) | Database redirect plugin lookup on every hit |
| Core Web Vitals stability | Minimal JS, CDN cached globally, fast LCP | Render-blocking theme scripts, slider bloat, origin lag |
COPY-READY ASTRO SEO PATTERNS
const canonicalUrl = new URL(Astro.url.pathname, Astro.site).toString();
---
<title>{title}</title>
<meta name="description" content={description} />
<link rel="canonical" href={canonicalUrl} />
<meta property="og:title" content={title} />
<meta property="og:description" content={description} />
<meta property="og:type" content="website" />
<meta property="og:url" content={canonicalUrl} />/services.html /services/ 301 /blog/old-post-slug /guides/new-guide-slug/ 301 /contact-us /contact/ 301
COMMON QUESTIONS
No. WordPress SEO plugins exist to patch missing title tags, canonical links, XML sitemaps, and schema in a database-driven CMS. In Astro, a single shared BaseLayout component outputs exact, clean metadata and JSON-LD on every page with zero plugin overhead or security risk.
Not when you preserve existing URLs or map every changed URL with exact 301 permanent redirects in public/_redirects. Most sites see improved crawl efficiency and Core Web Vitals after moving to static HTML served from Cloudflare's edge.
If both /pricing and /pricing/ return HTTP 200 with different canonicals, search engines can split link equity across duplicate URLs. Setting trailingSlash: 'always' in Astro and matching canonicals in sitemap.xml keeps every URL unambiguous.
Once you verify your domain in Google Search Console, submit sitemap.xml, and inspect your homepage URL, Google typically begins crawling within hours to a few days, with competitive rankings maturing over weeks as authority and internal links build.
FREE TEMPLATE ACCESS · ZERO LOCK-IN
Enter your email once to unlock instant 1-click downloads for all 15+ Astro & HTML website kits, starter pages, and custom Design Lab exports.