# Site infrastructure audit rules

> Find all 19 Sonjoo Site infrastructure rules by ID, with the evidence and inputs each check uses.

Canonical documentation: <https://sajaddehshiri.ir/sonjoo-seo-audit/features/rules/technical/>

Sonjoo groups 19 checks under **Site infrastructure** (`technical`). Select this category with `sonjoo audit <url> --categories technical`, or pass the category ID in an [HTTP audit request](https://sajaddehshiri.ir/sonjoo-seo-audit/api/reference/#start-request-options).

This category has weight **7** in the overall audit score when it has scored results. Sonjoo normalizes category weights over the categories with scored results.

[All audit categories](https://sajaddehshiri.ir/sonjoo-seo-audit/features/rules/) · [Rule settings and interpretation](https://sajaddehshiri.ir/sonjoo-seo-audit/features/rules/#use-a-rule-id)

## technical-robots-txt-exists

Check whether the site exposes an accessible robots.txt file at the top level.

**Inputs.** The relevant HTML, HTTP response or collected site probe is available.

**Evidence.** File URL and status code.

Base scoring weight **1** when measured.

## technical-robots-txt-valid

Check recognized robots policy lines, reporting malformed records with their line numbers.

**Inputs.** The relevant HTML, HTTP response or collected site probe is available.

**Evidence.** Parsed user-agent and sitemap declarations or line-specific syntax findings.

Base scoring weight **1** when measured.

## technical-sitemap-exists

Find a sitemap at the default path or one explicitly declared in robots.txt.

**Inputs.** The relevant HTML, HTTP response or collected site probe is available.

**Evidence.** Checked locations and locations returning HTTP 200.

Base scoring weight **1** when measured.

## technical-sitemap-valid

Check the sitemap’s lexical root, sitemap namespace, entry markers and per-entry absolute locations.

**Inputs.** The relevant HTML, HTTP response or collected site probe is available.

**Evidence.** Sitemap URL, number of entries and structure issues.

Base scoring weight **1** when measured.

## technical-url-structure

Assess readability signals including underscores, serialized length, extension and query complexity.

**Inputs.** The relevant HTML, HTTP response or collected site probe is available.

**Evidence.** Path and total lengths and applicable finding descriptions.

Base scoring weight **1** when measured.

## technical-trailing-slash

Identify internal paths linked in both slash variants, while allowing differing conventions across different resources.

**Inputs.** The relevant HTML, HTTP response or collected site probe is available.

**Evidence.** Counts by style and the conflicting path.

Base scoring weight **1** when measured.

## technical-www-redirect

Compare the initial status and final destination of both hostname variants. Accept one preferred host when the alternate redirects permanently.

**Inputs.** Both in-scope hostname variants can be resolved through the normal guarded HTTP transport.

**Evidence.** Both initial hosts and their observed response destinations.

Base scoring weight **1** when measured.

## technical-404-page

Request a deliberately nonexistent page and confirm it returns a useful HTTP 404 response.

**Inputs.** The relevant HTML, HTTP response or collected site probe is available.

**Evidence.** Initial status, custom error page flag and signs of navigation.

Base scoring weight **1** when measured.

## technical-soft-404

Flag a 200 response whose short page content signals that the requested entity is missing.

**Inputs.** The relevant HTML, HTTP response or collected site probe is available.

**Evidence.** Status, observed indicator and word count.

Base scoring weight **10** when measured. Has configurable thresholds or options.

## technical-server-error

Identify HTTP 5xx status codes as server errors.

**Inputs.** The relevant HTML, HTTP response or collected site probe is available.

**Evidence.** The observed HTTP status and error class.

Base scoring weight **10** when measured.

## technical-4xx-non-404

Separate non-404 client errors from normal responses and dedicated 404 handling.

**Inputs.** The relevant HTML, HTTP response or collected site probe is available.

**Evidence.** The observed status and error class.

Base scoring weight **8** when measured.

## technical-timeout

Classify measured page response latency at explicit Sonjoo thresholds.

**Inputs.** The relevant HTML, HTTP response or collected site probe is available.

**Evidence.** Response time and applicable decision threshold.

Base scoring weight **8** when measured.

## technical-bad-content-type

Check the Content-Type of an intended HTML document.

**Inputs.** The relevant HTML, HTTP response or collected site probe is available.

**Evidence.** The declared and normalized media types.

Base scoring weight **8** when measured.

## technical-empty-html

Flag a 200 HTML document with no payload or with empty document content.

**Inputs.** The relevant HTML, HTTP response or collected site probe is available.

**Evidence.** Status code and HTML length.

Base scoring weight **10** when measured.

## technical-form-get-method

Identify forms that use the GET method, including a missing method attribute.

**Inputs.** The relevant HTML, HTTP response or collected site probe is available.

**Evidence.** Form count and action URLs.

Base scoring weight **4** when measured.

## technical-duplicate-gtm

Identify distinct Google Tag Manager container identifiers in script sources and bodies.

**Inputs.** The relevant HTML, HTTP response or collected site probe is available.

**Evidence.** Sorted distinct identifier list.

Base scoring weight **1** when measured.

## technical-duplicate-ga

Identify distinct Google Analytics property identifiers in script sources and bodies.

**Inputs.** The relevant HTML, HTTP response or collected site probe is available.

**Evidence.** Sorted distinct identifier list.

Base scoring weight **1** when measured.

## technical-consent-mode

Check for evidence of Google tag consent configuration when the page embeds a Google tag.

**Inputs.** The relevant HTML, HTTP response or collected site probe is available.

**Evidence.** Presence of a Google tag and static consent setup signal.

Base scoring weight **3** when measured.

## technical-amp-pairing

Verify that a declared AMP URL loads and links back to the original canonical page.

**Inputs.** The AMP relationship is declared from the audited parent.

**Evidence.** AMP target, observed status and AMP canonical destination.

Advisory. Excluded from scoring.
