Web Development4 min read

Why We Rebuilt Our Own Website: From WordPress to Astro, Without Losing SEO

Short answer: We moved shrijantech.com from WordPress with Elementor and a commercial theme to a static Astro site on Vercel. The home page went from about 2.5 MB to under 1 MB in total, and only a small fraction of that loads before the page is visible. Every URL stayed the same, old WordPress paths redirect permanently, and the team still edits posts and case studies in a simple admin backed by Postgres. We did it because a slow website undermines a company that sells engineering quality.

What was wrong with the old site?

Nothing unusual, which is the point. It was a typical agency-style WordPress build: a multipurpose theme, the Elementor page builder, and a handful of plugins. It looked good, but when we measured it:

  • The home page weighed about 2.5 MB.
  • On a mobile test, the largest content took roughly 11 seconds to appear (Largest Contentful Paint). Google's "good" threshold is 2.5 seconds.
  • Most of the weight was theme and page-builder code that the page didn't need.

We tell clients that speed affects trust, conversions and search visibility. In our HVAC project, cutting load time from 9s to 1.4s was part of a 230% rise in online bookings. We had to hold our own site to the same standard.

Why Astro?

Astro builds every public page into plain HTML ahead of time and ships JavaScript only where a page actually needs it. For a content and marketing site, that is close to ideal:

  • Fast by default. Pages are static files served from Vercel's edge network, with no database query or PHP execution per visit.
  • Small pages. No page-builder runtime, so styles and scripts are only what we wrote.
  • Still dynamic where it matters. The contact form, newsletter and admin run as serverless functions alongside the static pages.
  • Less to patch. No public WordPress admin and no plugin updates to chase, so the attack surface is much smaller.

How did we avoid losing SEO?

Migrations most often hurt rankings by changing URLs. Our rules:

  1. Identical URLs. Blog posts stay at /post-name/, case studies at /case-study/name/, services at /service/name/, all with WordPress-style trailing slashes.
  2. Permanent (301) redirects for every retired WordPress path: sub-service pages, category and author archives, old sitemaps and feeds.
  3. Same titles and meta descriptions, carried over from the old SEO plugin, then improved page by page.
  4. A generated sitemap that updates on every publish.

How does the team edit content without WordPress?

We built a small, purpose-made admin. Posts, case studies, leads and newsletter subscribers live in Postgres (Neon). Editors write in a rich-text editor. Publishing triggers a rebuild, and the static site updates in about a minute. If the database is ever unreachable during a build, the build fails on purpose, so the live site keeps serving the last good version instead of an empty one.

Enquiries from the contact form are saved to the database before any email is sent, so a mail outage can never lose a lead.

Built to be read by AI assistants too

More and more buyers ask ChatGPT, Claude or Perplexity for recommendations before they ever open Google. So we made the site easy for those systems to understand and cite accurately:

  • Structured data (schema.org) on every page: organisation, services, articles, breadcrumbs and FAQs.
  • An llms.txt file summarising who we are, what we do and where our case studies are, plus llms-full.txt with the full text.
  • Answer-first writing: every article opens with a short, direct answer and ends with real questions and answers.
  • A robots.txt that explicitly welcomes search and AI crawlers.

The results

  • Home page weight: from about 2.5 MB to under 1 MB including every lazy-loaded image. The HTML, CSS, scripts and first images needed for the initial view total only a couple of hundred kilobytes.
  • Every public page is static HTML served from the edge.
  • Zero URL changes, with all retired paths redirected.
  • A simpler, safer editing workflow for the team.

We track real-visitor performance with Vercel Speed Insights and will keep tuning based on field data.

Should you move off WordPress?

Not necessarily. WordPress is still a great choice when non-technical teams need a full CMS with plugins, as in our government data portal and HVAC projects. The real problem is usually heavy themes and page builders. Consider a static or headless rebuild when:

  • Your site is mostly marketing pages and articles.
  • Speed is hurting conversions or rankings and plugin-level fixes have stopped helping.
  • You want less maintenance and a smaller security surface.
  • You have, or can hire, developers to own the code.

Frequently asked questions

Is Astro better than WordPress for SEO?

Astro doesn't rank pages. Content and relevance do. But Astro makes it easy to ship fast, lightweight HTML with clean markup and structured data, which supports good page experience. A well-built, lean WordPress site can also perform well.

Will migrating from WordPress hurt my Google rankings?

It doesn't have to. Keep URLs identical where you can, 301-redirect everything that changes, carry over titles and meta descriptions, and submit the new sitemap. Rankings usually hold, and often improve with better speed.

Can non-developers still edit an Astro site?

Yes, with a CMS or admin connected to it. We built a lightweight admin backed by Postgres. Headless CMS products are another option.

Can Shrijan Tech migrate or speed up my website?

Yes. We do performance audits, WordPress optimisation, and full migrations to Astro, Next.js or headless setups through our web and application development service. Send us your URL and we will tell you where the time is going.

Ready To Scale With Confidence

Let’s design technology that secures today and powers tomorrow.

  1. 1Contact Info
  2. 2Services
  3. 3Budget & Timeline
  4. 4Project Details
  5. 5Submit
Let's get to know you

We'll need some basic information to get started

Step 1 of 4