SEARCH ENGINE OPTIMIZATION · TECHNICAL + CONTENT FOUNDATION

SEO that works without bloated plugins.

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

Four steps from clean code to Google indexing.

4 steps
Step 1 of 4

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 pillars
Example preview01
Semantic HTML & unique metadata
01One H1 matching intent
02Unique title & description
03Self-referencing canonical

Illustration · not connected to your accounts

Step 2 of 4

Crawlability & clean URLs

Maintain an up-to-date sitemap.xml, clean robots.txt, apex/www 301 canonical redirect, and consistent trailing slashes.

Copy Astro head & redirects
Example preview02
Crawlability & clean URLs
01https:// apex 301 rule
02XML sitemap in robots.txt
03Zero broken 404 internal links

Illustration · not connected to your accounts

Step 3 of 4

Core Web Vitals & edge caching

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 SEO
Example preview03
Core Web Vitals & edge caching
01Global CDN edge TTFB
02Explicit image dimensions
03Minimal client JavaScript

Illustration · not connected to your accounts

Step 4 of 4

Search Console & migration safety

Submit sitemap.xml in Google Search Console, inspect priority URLs, and protect legacy rankings with edge 301 rules.

Open Search Console guide
Example preview04
Search Console & migration safety
01Domain property verification
02Submit sitemap.xml
03Track clicks & impressions

Illustration · not connected to your accounts

6 NON-NEGOTIABLE TECHNICAL SEO PILLARS

What every high-ranking static page includes

01 · Metadata & Canonicals

One canonical URL per page

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).

02 · Semantic Outline

Real landmarks & heading hierarchy

Use genuine <header>, <nav>, <main>, <article>, and <footer> landmarks with one <h1> and sequential <h2>/<h3> subheadings — no heading-level skips for styling.

03 · Core Web Vitals

Instant edge delivery & zero CLS

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.

04 · Crawl Hygiene

Accurate sitemap.xml & robots.txt

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.

05 · 301 Redirect Safety

Preserve every legacy URL on cutover

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.

06 · Internal Linking

Clear topical clusters & descriptive anchor text

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

Why static architecture simplifies technical SEO

SEO SignalStatic Astro + Cloudflare PagesDatabase CMS / Heavy JS Builder
HTML availability to Googlebot100% pre-rendered static HTML on first responseServer PHP assembly or delayed JS rendering queue
Metadata & canonicalsDeterministic layout props checked by automated testsPlugin conflicts, tag-page bloat, duplicate archives
301 redirect speedEdge-executed via public/_redirects (~ms)Database redirect plugin lookup on every hit
Core Web Vitals stabilityMinimal JS, CDN cached globally, fast LCPRender-blocking theme scripts, slider bloat, origin lag

COPY-READY ASTRO SEO PATTERNS

Canonical Astro layout head & Cloudflare 301 redirects

src/layouts/BaseLayout.astro — Clean canonical & Open Graph head
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} />
public/_redirects — Preserve old URLs with edge 301s
/services.html /services/ 301
/blog/old-post-slug /guides/new-guide-slug/ 301
/contact-us /contact/ 301

COMMON QUESTIONS

Static Website SEO FAQ

Do I need Yoast or Rank Math on a static Astro website?

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.

Will switching from WordPress or Wix to a static site hurt my Google rankings?

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.

Why does trailing-slash consistency matter for SEO?

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.

How long does it take Google to index a new static website?

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.