Mert Özen Go Beyond the Code

Blog

Posts and series that take software and IT from the basics to advanced topics: from programming languages and databases to architecture and AI.

Series
1990 posts found
JavaScript SEO: CSR, SSR, SSG and How Googlebot Renders Pages
SEO & GEO PART 08

JavaScript SEO: CSR, SSR, SSG and How Googlebot Renders Pages

Content to be indexed must be in the first HTML: Googlebot runs JavaScript in a render queue, and many crawlers never run it. We measure the same Angular page as SSG, SSR and CSR with curl and headless Chrome, and see why Lighthouse gives the CSR page 100, why dynamic rendering is a workaround, and pitfalls such as content behind clicks.

8 Nov 2026 10 min 97
Redirects: 301, 302, 307, 308 and Doing Them Right in ASP.NET Core
SEO & GEO PART 07

Redirects: 301, 302, 307, 308 and Doing Them Right in ASP.NET Core

Use 301 or 308 for permanent moves: Google treats them as a strong canonical signal and 302 and 307 as weak ones, while 308 and 307 keep POST. We look at ASP.NET Core's URL Rewriting Middleware, UseHttpsRedirection with its 307 default, single-hop 301s from a slug history in the database, chains, and redirectTo returning 302 in Angular SSR, with real outputs.

8 Nov 2026 11 min 88
HTTP Status Codes and Soft 404s: How Google Interprets 404, 410, 5xx and 429
SEO & GEO PART 06

HTTP Status Codes and Soft 404s: How Google Interprets 404, 410, 5xx and 429

Google treats 404 and 410 the same and removes the URL from the index; 5xx and 429 slow crawling, and URLs drop if errors persist. A not-found page returning 200 is a soft 404. We cover error pages that keep the status code in ASP.NET Core, 503 with Retry-After, the rate limiter, HEAD and 405, a real 404 with RESPONSE_INIT in Angular SSR, and mertozen.com's switch from 404 to 503 on CMS errors.

8 Nov 2026 11 min 84
Canonical URLs: Managing Duplicate Content and the Canonical Google Chooses
SEO & GEO PART 05

Canonical URLs: Managing Duplicate Content and the Canonical Google Chooses

rel=canonical is a signal, not a command: Google picks the URL on which redirects, canonicals, the sitemap and internal links agree. We write a canonical tag helper in ASP.NET Core that ignores the Host header and drops needless parameters, and look at the Link header for PDFs, a single canonical in Angular SSR and Google's December 2025 JavaScript rule, with real outputs.

8 Nov 2026 10 min 83
XML Sitemaps and IndexNow: Generating Dynamic Sitemaps in ASP.NET Core and Announcing Changes
SEO & GEO PART 04

XML Sitemaps and IndexNow: Generating Dynamic Sitemaps in ASP.NET Core and Announcing Changes

A sitemap is a hint to Google: changefreq and priority are ignored, lastmod is used only when verifiably accurate, and a file holds at most 50,000 URLs and 50 MB. We stream a sitemap from EF Core and measure it with 108,000 URLs, evict the output cache on publish, set up IndexNow for Bing and Yandex, and look at a build-time sitemap in Angular and mertozen.com's sitemap.

8 Nov 2026 13 min 79
noindex and X-Robots-Tag: Correctly Keeping Pages and PDFs out of the Index
SEO & GEO PART 03

noindex and X-Robots-Tag: Correctly Keeping Pages and PDFs out of the Index

The way to keep a page or PDF out of the index is noindex, not robots.txt: a noindex on a blocked URL is never seen, and the Removals tool only hides a URL for about six months. We build an X-Robots-Tag middleware in ASP.NET Core and look at the static file ordering bug, the risk of noindex added with JavaScript in Angular, and server route headers, with real outputs.

8 Nov 2026 11 min 66
A robots.txt Guide: RFC 9309, Allow/Disallow Rules and What Not to Block
SEO & GEO PART 02

A robots.txt Guide: RFC 9309, Allow/Disallow Rules and What Not to Block

robots.txt controls crawling, not indexing: a crawler follows the one group carrying its name, the longest matching rule wins, and a robots.txt returning 5xx stops crawling. We test RFC 9309 rules in C#, generate robots.txt per environment in ASP.NET Core, see Angular SSR giving robots.txt a one-year cache header, and read mertozen.com's file.

8 Nov 2026 12 min 118
SEO-Friendly URL Design: Slugs, Lowercase, Trailing Slashes and Query Parameters
SEO & GEO PART 01

SEO-Friendly URL Design: Slugs, Lowercase, Trailing Slashes and Query Parameters

An SEO-friendly URL is single and permanent: lowercase, readable words separated by hyphens, a consistent trailing slash and a query free of parameters that do not change the content. We look at a C# function that turns Turkish titles into ASCII slugs, 301 normalization in ASP.NET Core, the History API instead of fragments in the Angular router, and mertozen.com slugs, with real outputs.

8 Nov 2026 12 min 62
Measuring GEO: Search Console, Bing AI Performance, Referral Traffic and Server Logs
SEO & GEO PART 07

Measuring GEO: Search Console, Bing AI Performance, Referral Traffic and Server Logs

There is no single measure of AI visibility: the Search Console generative AI report gives impressions only, AI Overviews clicks are merged with Web, Bing AI Performance shows citations and a grounding query sample, and on your side you have referrals and user-initiated fetch logs. We show code that records AI bot and referral events with ASP.NET Core middleware and produces a weekly summary with EF Core, and the limits of prompt panels.

8 Nov 2026 9 min 86
Building Sites for AI Agents: Semantic HTML, the Accessibility Tree and Lighthouse Agentic Browsing
SEO & GEO PART 06

Building Sites for AI Agents: Semantic HTML, the Accessibility Tree and Lighthouse Agentic Browsing

Browser agents read a page through screenshots, the DOM and the accessibility tree; a button built from a div doesn't show up there at all, and a button without a name doesn't say what it does. We measure two versions of an Angular 22 form with an accessibility tree dump and Lighthouse 13.6.0's Agentic Browsing category, showing what the tool catches, what it misses and WebMCP's experimental status.

8 Nov 2026 9 min 69
llms.txt and Markdown Versions: The Spec, Who Uses It, and Implementing It in ASP.NET Core
SEO & GEO PART 05

llms.txt and Markdown Versions: The Spec, Who Uses It, and Implementing It in ASP.NET Core

llms.txt is a Markdown map at the site root made of an H1, a summary and link lists; Google Search ignores it, no major AI search engine has officially said it uses it, and its real use is coding assistants and agents. We cover spec v2, a Minimal API that generates llms.txt and per-post Markdown from EF Core data, Output Cache invalidation and mertozen.com's file.

8 Nov 2026 9 min 68
Citable Content: What the Research Actually Shows
SEO & GEO PART 04

Citable Content: What the Research Actually Shows

The "up to 40%" gain in the GEO paper was measured in a single-actor benchmark where the source was already in the answer's context; C-SEO Bench found most methods ineffective under competition, and a 2026 survey found no tactic with a proven durable causal effect. We give the practices consistent with the evidence and review a post on this site.

8 Nov 2026 8 min 60
Blog Map