Full Stack & Backend Engineer Guide: Technical SEO, JSON-LD & AI Search (llms.txt)
Search discovery has evolved into a dual-engine ecosystem: traditional web crawlers (Googlebot, Bingbot) evaluate canonical authority, Core Web Vitals, and structured schema graphs, while AI search engines (ChatGPT Search, Perplexity, Google AI Overviews, Claude) ingest high-signal technical markdown and /llms.txt indices. As a Senior Full Stack Engineer and Backend Engineer, I implement code-level Technical SEO and Generative Engine Optimization (GEO) directly inside Django and Next.js architectures—without ever resorting to duplicate doorway spam.
1. Eliminating Cross-Locale Duplicate Indexing with Conditional Sitemaps & Canonicals
A common technical SEO mistake in multilingual Django or Next.js sites is enabling naive i18n URL multiplication across every locale (e.g., /en-us/, /id/, /ms/, /ar/) even when an article only has an English body. When Googlebot crawls four distinct URLs that return the exact same English paragraph text, it flags the site for duplicate content and splits ranking signals. The engineering fix requires two strict invariants:
- Translation-Aware Sitemaps: Only emit a localized URL in
sitemap.xmlwhen a non-empty translation record actually exists in the database. - Canonical Consolidation: If a user or bot requests
/id/blog/slug/for an untranslated post, render<link rel="canonical" href="https://.../en-us/blog/slug/" />so 100% of link equity consolidates to the primary language URL.
2. Dynamic JSON-LD Knowledge Graphs & llms.txt Endpoints in Django
Rather than scattering fragile microdata attributes across HTML templates, I generate validated JSON-LD @graph payloads linking Person, ProfessionalService, TechArticle, and BreadcrumbList entities alongside a dedicated /llms.txt endpoint for AI answer engines:
import json
from django.http import HttpResponse
def build_tech_article_json_ld(article, canonical_url: str, lang_code: str) -> str:
graph = {
"@context": "https://schema.org",
"@graph": [
{
"@type": "TechArticle",
"@id": f"{canonical_url}#article",
"headline": article.title,
"description": article.subtitle,
"inLanguage": lang_code,
"mainEntityOfPage": canonical_url,
"author": {
"@type": "Person",
"@id": "https://www.aldianfazrihady.com/#person",
"name": "Aldian Fazrihady",
"jobTitle": [
"Senior Cloud Engineer",
"Google Cloud Platform (GCP) Engineer",
"Senior Backend Engineer",
"AI Application Engineer",
"Senior Full Stack Engineer",
],
},
}
],
}
return json.dumps(graph, ensure_ascii=False)
3. Content Quality Over Programmatic Boilerplate
Search engines actively demote programmatic pages that swap city names or numbers inside identical paragraph templates. True organic authority comes from consolidating overlapping stubs into comprehensive, code-rich engineering guides (3,500–5,500+ characters) with original architectural diagrams, runnable code examples, and genuine human-grade translations.
4. Hire a Senior Full Stack & Backend Engineer for Technical SEO
Want to fix indexing bottlenecks, structured data errors, and AI search visibility in your Django or Next.js platform? Explore my Full Stack Engineer Guide, review my Backend Engineer Architecture Guide, or book a 1-Day Technical SEO Audit & Sprint.