· 4 min read · Muhammad Shah
A technical SEO checklist for Laravel and Inertia sites
Single-page apps are fast to build and easy to get wrong for search. On Trendivoa, a coupon and deals platform built with Laravel 13 and Inertia React, these are the technical SEO pieces I put in place.
1. Render on the server
Inertia's server-side rendering sends real HTML with the content already in it. Crawlers and link previews see the page immediately instead of an empty shell waiting for JavaScript.
2. One canonical URL per page
Pick www or non-www, redirect the other with a 301, and set a canonical link on every page. Duplicate hosts split ranking signals and confuse search consoles.
3. Unique titles and descriptions
Store SEO metadata per page and per record, with sensible defaults generated from the content. Store pages, categories and posts each deserve their own title and description, not the site-wide one.
4. Structured data
Schema.org markup tells search engines what a page is about: an article, an organisation, a breadcrumb trail. A package like spatie/schema-org keeps it type-safe instead of hand-written JSON.
5. Sitemap and robots
- Generate the XML sitemap from the database so new stores and posts appear automatically.
- Reference the sitemap from robots.txt and submit it in Google Search Console.
- Keep admin, API and search-result pages out of the index.
6. Test SEO like any other feature
Feature tests can assert that a page returns the right title, canonical link, meta description and structured data, and that the non-canonical host redirects. Then a refactor can't quietly remove them.
7. Keep it fast
Core Web Vitals are part of ranking. Optimise images, avoid render-blocking scripts and check mobile Lighthouse scores after every major change.
Keep reading
5 min read
Google, Microsoft, OpenAI and Anthropic agree on one robots.txt opt-out for AI training
The four biggest AI companies will honour a shared robots.txt signal for AI training. What it is, when each company starts, how it differs from search and AI answers, and what your website should do.
5 min read
Zero-downtime Laravel deploys to a VPS with GitHub Actions
Build once in CI, upload a release, switch a symlink atomically and roll back in seconds: the deploy setup I use for Laravel apps on a VPS.