# Sitemap Audit — https://new.nar30i3.ir/

Date: 2026-09-13

## Summary

**No XML sitemap exists on the audited site.** Every path tested on `new.nar30i3.ir` — including `/sitemap.xml`, `/sitemap_index.xml`, `/sitemap-index.xml`, `/wp-sitemap.xml`, and `/robots.txt` — returns **HTTP 200** but serves the Nuxt SPA's client-rendered HTML shell (a soft-404 page), not sitemap XML or a robots.txt file. This is a critical, site-wide issue that also compounds the sitemap problem: Google cannot discover, validate, or trust any sitemap for this domain today.

## Critical Findings

### 1. No sitemap.xml / sitemap index present — CRITICAL
- `GET https://new.nar30i3.ir/sitemap.xml` → HTTP 200, `Content-Type: text/html`, body is the SPA shell HTML (not XML).
- Same result for `/sitemap_index.xml`, `/sitemap-index.xml`, `/wp-sitemap.xml`.
- `claude-seo sitemap_discovery.py` confirms: `"found": []`, all four common paths flagged `"valid": false, "error": "DOCTYPE is not allowed in sitemap XML"`.
- **Impact**: Google Search Console has no sitemap to ingest; discovery/indexing relies entirely on internal linking and crawl budget. No `<lastmod>` freshness signal exists at all because no sitemap exists.
- **Action**: Implement a sitemap generator (e.g. `@nuxtjs/sitemap` module — not currently in `package.json` dependencies) that outputs real `application/xml` at `/sitemap.xml` (or a `/sitemap_index.xml` splitting products/categories/static pages), served as a static/prerendered asset so the SPA catch-all route does not intercept it.

### 2. No robots.txt present — CRITICAL
- `GET https://new.nar30i3.ir/robots.txt` → HTTP 200, `Content-Type: text/html`, same SPA shell HTML.
- The embedded Nuxt payload literally contains the server-side error that was swallowed: `"message":"صفحه یافت نشد","statusCode":404` for `GET /api/pages/robots.txt`, yet the HTTP response sent to the crawler is `200 OK`.
- **Impact**: No `Sitemap:` directive can be discovered by crawlers via robots.txt (the standard auto-discovery mechanism). No crawl directives (disallow rules) are being communicated at all.
- **Action**: Add a static/served `robots.txt` with `User-agent: *`, appropriate `Disallow` rules for cart/checkout/auth (see Finding 4), and a `Sitemap:` line pointing at the real sitemap URL.

### 3. Site-wide soft-404 behavior masks all validation — CRITICAL
- Verified that arbitrary, non-existent URLs also return HTTP 200 with the SPA shell:
  - `/this-definitely-does-not-exist-404test` → 200
  - `/product/test-fake-slug-xyz` → 200
- This is not limited to sitemap-adjacent paths; it appears to be the Nuxt catch-all/SSR error-handling behavior returning 200 instead of propagating the underlying 404 status code from the API layer.
- **Impact**: This is a prerequisite blocker for sitemap validation itself — with every URL returning 200, "non-200 URL" and "noindexed URL" checks in a future sitemap cannot be trusted until this is fixed at the server/rendering layer. It also risks Google treating large swaths of the site as duplicate/soft-404 content, which can suppress indexing of legitimate product/category pages.
- **Action**: Fix Nuxt server error handling so that `createError({ statusCode: 404 })` responses (visible in the page's own `__NUXT_DATA__` payload) actually set the HTTP response status to 404, not 200.

## High-Severity Findings

### 4. Cannot verify inclusion/exclusion of product, category, cart, checkout, auth pages
Because no sitemap exists, the specific checks requested cannot be evaluated directly against `new.nar30i3.ir`. Static route files confirm the following routes exist in the app and must be classified when the sitemap is built:
- Present in app routing (from `pages/`, footer/menu links observed in rendered HTML): `/`, `/category`, `/products`, `/product/[id]/[slug]`, `/sale`, `/latest`, `/one-size`, `/blog`, `/about`, `/contact`, `/faq`, `/return-policy`, `/privacy`, `/terms`.
- Excludable/private routes present in the app: `/cart`, `/checkout` (referenced as `basket.html`/`checkout.html` in repo), `/auth/login`, `/auth/register` (or `/register`), account/order pages.
- **Recommendation when the sitemap is built**: Include product detail pages and category listing pages (these are the primary indexable, unique-content pages for an e-commerce catalog). Exclude `/cart`, `/checkout`, `/auth/*`, `/basket`, account/profile/orders pages, and internal search result pages — these are user-state-dependent or duplicate/thin and should also carry `noindex` and be `Disallow`'d in robots.txt.

### 5. Reference: legacy production domain (nar30i3.ir) sitemap has its own defects
For context, the live legacy domain `https://nar30i3.ir/sitemap.xml` (the presumed predecessor to `new.nar30i3.ir`) **does** return a valid-looking XML sitemap and was inspected for comparison/migration planning:
- 605 `<url>` entries, well under the 50,000 URL / 50MB limits — no split needed at current volume.
- 373 product URLs (`/product/...`), 90 category URLs (`/c/...`), plus static/account pages.
- **Deprecated tags present on every URL**: `<priority>` (605 occurrences) and `<changefreq>` (604 occurrences) — both explicitly ignored by Google. Low severity, but should be dropped when the new sitemap is built to reduce file size/noise.
- **All `<lastmod>` values are identical** (`2025-12-10T20:14:49+03:30`) across every URL that has one — this does not reflect real per-page last-significant-change dates and provides no useful freshness signal to Google. Low/Medium severity.
- **Excluded-page hygiene issue carried over**: the legacy sitemap includes `/login`, `/register`, `/account`, `/profile`, `/orders`, `/wishlist`, and `/cart` — all user-account/cart pages that should NOT be in a sitemap (thin/duplicate/user-specific content, no SEO value). This is the same category of mistake to avoid when building the new sitemap.
- Legacy `robots.txt` does correctly declare `Sitemap: https://nar30i3.ir/sitemap.xml` and `Disallow:` (allow-all) — a good pattern to replicate on `new.nar30i3.ir`, minus the cart/auth pages that leaked into the sitemap itself.

## Quality Gate Check (Location Pages)
Not applicable — no location-based programmatic pages (e.g., city/service combinations) were found in the site's route structure (`pages/`) or in the legacy sitemap's URL patterns. No warning or hard-stop triggered.

## Validation Summary Table

| Check | Target: new.nar30i3.ir | Status |
|---|---|---|
| sitemap.xml exists & valid XML | Not found (200 OK, HTML body, not XML) | FAIL — Critical |
| sitemap_index.xml exists | Not found (same soft-404 pattern) | FAIL — Critical |
| robots.txt exists & declares Sitemap | Not found (200 OK, HTML body) | FAIL — Critical |
| ≤50,000 URLs / ≤50MB per file | N/A — no sitemap to measure | N/A |
| URL status codes (200 vs non-200) | Cannot verify — site returns 200 for all URLs including nonexistent ones | FAIL — Critical (blocking) |
| Noindexed URLs excluded | Cannot verify (no sitemap) | N/A |
| lastmod present & accurate | Cannot verify (no sitemap) | N/A |
| priority/changefreq removed | N/A — no sitemap | N/A |
| Product/category pages included | Cannot verify (no sitemap); confirmed routes exist in app | FAIL — pending sitemap creation |
| Cart/checkout/auth excluded | Cannot verify (no sitemap); these routes exist in the app and must be excluded once a sitemap is built | Pending |

## Recommended Remediation Order
1. Fix soft-404 handling (site-wide) so real 404s return HTTP 404 — this is a prerequisite for trustworthy crawling/indexing signals generally, not just for sitemap validation.
2. Add `@nuxtjs/sitemap` (or equivalent) to `package.json` and configure it to auto-generate `/sitemap.xml` (or a `sitemap_index.xml` splitting `products.xml`, `categories.xml`, `pages.xml`) from the live product/category API data, served as real XML.
3. Add a static `robots.txt` with correct `Disallow` rules for `/cart`, `/checkout`, `/auth/*`, account/order pages, and a `Sitemap:` directive.
4. Ensure generated `<lastmod>` values reflect actual product/category update timestamps (e.g., `updated_at` from the API), not a single build-time timestamp.
5. Omit `<priority>` and `<changefreq>` tags entirely (both ignored by Google; removing them reduces file size).
6. Once live, re-run sitemap discovery/validation and cross-check sitemap URL count against a full site crawl to identify missing (in-crawl-but-not-sitemap) and extra (in-sitemap-but-non-200/redirected) pages.

## Evidence
- `sitemap_discovery.py` JSON output (embedded above) showing all four common sitemap paths failing XML validation with `DOCTYPE is not allowed in sitemap XML`.
- Raw response headers/body captured for `/sitemap.xml`, `/robots.txt`, `/`, `/category`, `/products`, `/product/test-fake-slug-xyz`, `/this-definitely-does-not-exist-404test`, `/cart`, `/checkout`, `/auth/login` — all HTTP 200.
- Legacy domain comparison sitemap saved for reference: `/tmp/claude-1000/-media-sam-Dev1-Front-nar30i3-ir/02768753-2e5c-4d2c-b175-bca4bbd057bd/scratchpad/old-sitemap.xml` (605 URLs, 604 `<changefreq>` tags, 605 `<priority>` tags, 1 unique `<lastmod>` value).
