# Technical SEO Audit — https://new.nar30i3.ir/ (نارسیس)

Audit date: 2026-09-13
Stack: Nuxt 3 (SSR enabled, `ssr: true`), Nitro server, nginx front, separate Laravel API at `api.nar30i3.ir`.
Site language/direction: `lang="fa" dir="rtl"` (confirmed in `<html>` tag — correct).

## Technical Score: 38 / 100

The site has the right architectural bones (Nuxt SSR, clean URLs, correct RTL/viewport markup, `noindex` already applied to `/checkout`), but is undermined by a broken/misconfigured server layer: no real `robots.txt` or `sitemap.xml`, site-wide soft‑404s (everything returns HTTP 200), zero structured data, no security headers, an unfixed render-blocking third‑party CSS dependency in production, and at least one page (`/category`) that ships no server-rendered content at all. These are compounding, high-impact issues for an e-commerce site that depends on organic/category/product discovery.

---

## Category Summary

| Category | Status | Notes |
|---|---|---|
| Crawlability | **FAIL** | No robots.txt, no sitemap.xml, site-wide soft-404s (see sitemap specialist findings, corroborated below) |
| Indexability | **FAIL** | No canonical tags anywhere tested; `/category` has no SSR content; `/auth/login` missing `noindex`; homepage SSR renders empty state (API failure) |
| Security | **FAIL** | No HSTS, CSP, X-Frame-Options, X-Content-Type-Options, Referrer-Policy, or Permissions-Policy; HTTP and `www` hosts not redirected |
| URL Structure | **PARTIAL PASS** | Clean, human-readable slugs; but host-level duplication (http/https/www/non-www) and no canonicalization |
| Mobile | **PASS** (markup-level) | Correct viewport meta, RTL layout, dedicated mobile bottom nav; can't fully verify tap targets without live rendering audit |
| Core Web Vitals (lab estimate) | **FAIL** | Render-blocking third‑party Font Awesome CDN CSS live in production despite fixed source; CLS risk from spinner→content swap on `/category`; empty homepage sections also swap in post-load |
| Structured Data | **FAIL** | Zero JSON-LD found on homepage or category page (no Organization, no Product, no BreadcrumbList) |
| JS Rendering / SSR | **PARTIAL FAIL** | Homepage and static-content pages are genuinely SSR'd (`data-ssr="true"`, `serverRendered:true`), but `/category` ships only a CSS spinner in the initial HTML — its content is CSR-only |
| IndexNow | **FAIL** | No IndexNow implementation found anywhere in the codebase (`../../server`, `plugins/`, config) |

---

## Critical Issues

### C1. Font Awesome is still loaded from cdnjs.cloudflare.com in production — the local-vendor fix has not been deployed
`nuxt.config.ts` (source, line 40) has already been corrected to:
```ts
link: [
  { rel: 'stylesheet', href: '/vendor/fontawesome/css/all.min.css' }
]
```
and `public/vendor/fontawesome/` exists on disk locally. **However, every page fetched live from `https://new.nar30i3.ir/` (homepage, `/category`, `/products`, error pages) still emits:**
```html
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
```
This confirms the running deployment is on an **older build** than the current source tree. The CDN stylesheet is a render-blocking, third-party, cross-origin CSS request injected before all local `_nuxt/*.css` bundles — it delays First Contentful Paint/LCP on every page load, adds a DNS+TLS handshake to a third party, and creates a supply-chain/availability dependency (if cdnjs is blocked, slow, or the CDN version is deprecated, all icons across the entire site break).
- **Action: Rebuild (`nuxt build`) and redeploy the current source immediately.** Verify post-deploy that the emitted `<head>` contains `/vendor/fontawesome/css/all.min.css` and that `cdnjs.cloudflare.com` no longer appears in any page's response HTML. This is a one-line config fix that is already written — it just needs to ship.

### C2. No `robots.txt` or `sitemap.xml` — the entire site is invisible to crawler configuration
Confirmed independently of the sitemap specialist's findings: fetching `https://new.nar30i3.ir/robots.txt` and `/sitemap.xml` does **not** return a text/XML robots or sitemap document — it returns the exact same Nuxt SPA-shell HTML (200 OK, `Content-Type: text/html`) as every other unmatched route. There is no `public/robots.txt` and no `public/sitemap.xml` in the project, and the catch-all page (`pages/[...slug].vue`) intercepts these paths instead of Nitro serving static files or a generated sitemap.
- **Impact:** Search engines have no crawl directives, no canonical host declaration, and no XML sitemap to discover category/product URLs — especially damaging given the client-side API currently returns empty results (see H1/H2 below), meaning crawlers can't discover pages via internal links either.
- **Action:** Add `public/robots.txt` (with `Sitemap: https://new.nar30i3.ir/sitemap.xml`, disallow rules for `/checkout`, `/cart`, `/auth/*`, `/profile/*`), and generate a real `sitemap.xml`/`sitemap_index.xml` via `@nuxtjs/sitemap` or a Nitro route (`../../server`) that is registered **before** the catch-all `[...slug].vue` route so it isn't swallowed by it. Confirm both resolve with `Content-Type: text/plain` / `application/xml` respectively, not `text/html`.

### C3. Site-wide soft-404s — every non-existent URL returns HTTP 200
Verified directly: `https://new.nar30i3.ir/this-page-absolutely-does-not-exist-xyz123` → **HTTP 200**, empty Nuxt shell with no `<title>`. Also verified on a real page type: `https://new.nar30i3.ir/product/2/x` (product ID that the API confirms does not exist — `[GET] "https://api.nar30i3.ir/api/products/2": 404 Not Found` embedded in the SSR payload) still returns **HTTP 200** with an in-page "not found" state, even though `pages/[...slug].vue` explicitly calls `throw createError({ statusCode: 404, ... })` in its `<script setup>`. The thrown 404 is not reaching the actual HTTP response — something between Nitro and the edge (nginx config, a custom error handler, or an SPA-fallback `try_files` rule) is coercing all responses to 200.
- **Impact:** Every invalid/expired product or category URL, typos, and old links get indexed as valid pages with 200 status; this causes index bloat, duplicate/thin-content penalties, and wastes crawl budget at scale for an e-commerce catalog where product IDs churn constantly. It's also the root mechanical cause of C2 (robots.txt/sitemap.xml can't be distinguished from "page not found").
- **Action:** Audit the nginx vhost for `error_page` / `try_files` directives that force 200 on backend errors, and confirm Nitro's `createError` with `statusCode: 404` is propagated with `event.node.res.statusCode` set correctly (check for custom `../../server`/`../../server` swallowing errors). Verify fix with `curl -o /dev/null -s -w "%{http_code}\n"` against a deliberately invalid path before closing this out.

### C4. Homepage server-rendered content is effectively empty due to a broken backend API
The homepage SSR payload (`serverRendered:true`, real data fetch attempted) renders these literal strings in place of content:
- "هیچ دسته‌بندی‌ای برای نمایش در صفحه اصلی یافت نشد" (no category found to display)
- "محصول جدیدی برای نمایش یافت نشد" (no new product found)
- "محصول حراجی برای نمایش یافت نشد" (no sale product found)

This is not a rendering/JS problem — it's what a crawler's first (and for SSR, only-necessary) HTML fetch actually contains today. Root cause appears to be the backend: `https://api.nar30i3.ir/api/` returns a Laravel 404 error page for its base route, and `https://api.nar30i3.ir/api/products/2` returns 404 for what should be a real product lookup. The storefront is running against a broken or emptied product/category catalog.
- **Impact:** Homepage — the site's highest-authority, most-linked page — currently has near-zero indexable body content beyond boilerplate header/footer and static "features" copy. This is a thin-content problem independent of any JS rendering concern.
- **Action:** This is a backend/data issue outside pure front-end SEO scope, but it should be escalated immediately: verify the Laravel API's product/category endpoints and seed data are functioning in the environment `new.nar30i3.ir` points to. Until resolved, this single issue undermines nearly every other SEO fix on the site.

---

## High Priority Issues

### H1. `/category` ships zero content in the initial HTML — pure client-side rendering for a key template
Unlike the homepage (which at least attempts an SSR data fetch, however empty the result), `https://new.nar30i3.ir/category`'s raw HTML contains only:
```html
<h1>دسته‌بندی محصولات</h1>
<div class="animate-spin ..."></div>
```
No category list, no links, no text is present before JavaScript executes. This strongly suggests `useLazyFetch`/`useFetch` is being called with `server: false` (or an `onMounted` client-only fetch) on this page, unlike the pattern used elsewhere in the app.
- **Impact:** Even if the backend catalog is fixed (C4), Google (and any crawler not fully executing JS, including many SEO tools, social-media unfurlers, and AI-agent crawlers) will index this page as blank. For an e-commerce site, the category listing page is a primary internal-linking and landing-page surface — this is a significant discoverability loss.
- **Recommendation:** Convert the category-listing fetch to `useFetch`/`useAsyncData` with `server: true` (matching the pattern already used correctly in `pages/[...slug].vue`), so category cards are present in the SSR payload.

### H2. `/auth/login` has no `noindex` directive
`/checkout` correctly returns `<meta name="robots" content="noindex, nofollow">`. `/auth/login` returns **no robots meta tag at all** (default indexable). Account/auth flows (`/auth/login`, `/auth/register`, `/auth/forgot-password`, and by extension `/cart`, `/profile/*`) should not be indexed — they offer no unique public content, can trigger duplicate/thin-content flags, and needlessly expose the login form as a landing page in search results.
- **Recommendation:** Add a shared middleware/`useSeoMeta({ robots: 'noindex, nofollow' })` call to all `pages/auth/*.vue`, `pages/cart.vue`, and `pages/profile/**` routes (the same treatment already applied to `checkout.vue`). Also add `Disallow:` rules for these paths in the (currently missing) `robots.txt`.

### H3. No canonical tag on any page tested
Homepage, `/category`, `/checkout`, and `/auth/login` all lack `<link rel="canonical">`. Combined with H4/H5 below (host duplication) and dynamic product/category filter parameters likely used elsewhere in the SPA, this leaves Google to guess the canonical URL for every page.
- **Recommendation:** Add a global canonical via `useHead`/`useSeoMeta({ canonical: ... })` in `app.vue` or a layout-level composable, defaulting to `https://new.nar30i3.ir<route.path>` (no query string), overridable per-page for paginated/filtered views.

### H4. No HTTP → HTTPS redirect; HTTP served with identical 200 content
`curl http://new.nar30i3.ir/` returns **200 OK** with the exact same body as the HTTPS version — there is no redirect to HTTPS at all.
- **Impact:** Enables protocol-based duplicate content, allows the site to be linked/crawled/indexed over plaintext HTTP, and is a baseline security expectation for any e-commerce site handling logins and checkout.
- **Recommendation:** Add an nginx-level `return 301 https://$host$request_uri;` server block for all HTTP traffic, and add an HSTS header (see S1) once confirmed working.

### H5. `www.new.nar30i3.ir` serves identical content with no redirect/canonical
`https://www.new.nar30i3.ir/` also returns 200 with the same body as the apex `new.nar30i3.ir`. With no canonical tag (H3) and no redirect, this is a straightforward host-level duplicate-content configuration.
- **Recommendation:** Pick one canonical host (`new.nar30i3.ir`, matching `siteUrl` in runtimeConfig) and 301-redirect the `www` variant to it at the nginx/DNS layer.

### H6. No structured data (Schema.org / JSON-LD) anywhere
Neither the homepage nor `/category` contain any `<script type="application/ld+json">`. For a fashion e-commerce storefront this means no eligibility for:
- `Organization`/`WebSite` (sitelinks search box) on the homepage
- `BreadcrumbList` on category/product pages
- `Product` (price, availability, rating) rich results on product pages — the single highest-value schema type for e-commerce CTR
- **Recommendation:** Implement `Organization` + `WebSite` schema site-wide (logo, sameAs social links, `SearchAction`), `BreadcrumbList` on category/product templates, and `Product`/`Offer`/`AggregateRating` schema on `pages/product/[id]/[...slug].vue` once real product data is flowing (blocked by C4).

---

## Medium Priority Issues

### M1. No security headers on any response
Verified via `curl -I` on the homepage: the response contains only `Server`, `Date`, `Content-Type`, `Content-Length`, `Vary`, `x-powered-by: Nuxt`, `Cache-Control`, `Expires`. **Missing entirely:**
- `Strict-Transport-Security`
- `Content-Security-Policy`
- `X-Content-Type-Options: nosniff`
- `X-Frame-Options` (or `frame-ancestors` in CSP)
- `Referrer-Policy`
- `Permissions-Policy`
- **Recommendation:** Add via `nitro.routeRules` (`headers` block) or the nginx layer:
  ```
  Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
  X-Content-Type-Options: nosniff
  X-Frame-Options: SAMEORIGIN
  Referrer-Policy: strict-origin-when-cross-origin
  Permissions-Policy: geolocation=(), camera=(), microphone=()
  Content-Security-Policy: (scope after auditing all third-party origins — currently would need to allow cdnjs.cloudflare.com, fonts.gstatic.com, api.nar30i3.ir, nar30i3.ir; this list should shrink once C1 is fixed)
  ```
  Only add HSTS after confirming H4 (HTTP→HTTPS redirect) works everywhere, to avoid locking out any remaining plaintext dependency.

### M2. `x-powered-by: Nuxt` header exposes framework fingerprint
Minor information disclosure; not itself an SEO issue but worth removing alongside the M1 header cleanup (`nitro.routeRules` or `compressPublicAssets`/framework header suppression) as a hardening best practice.

### M3. Likely layout shift (CLS) from loading-state → content swaps
Both the homepage (skeleton `animate-pulse` slider block before hydration) and `/category` (full-page spinner replaced by a grid once client data loads) swap significantly different layouts in after paint. Without reserved space (fixed-height skeleton matching the final grid's dimensions), this is a classic CLS driver, especially on mobile with variable image aspect ratios.
- **Recommendation:** Ensure skeleton/loading placeholders match the final content's dimensions (same grid columns/row heights), and prioritize fixing H1 (SSR the category data) which removes the client-side swap for that template entirely.

### M4. IndexNow protocol not implemented
No IndexNow key file, no submission calls to Bing/Yandex/Naur endpoints found in `../../server`, `plugins/`, or `nuxt.config.ts`. For a catalog site with frequent price/stock/product changes, IndexNow submission on publish/update would meaningfully speed up Bing/Yandex re-crawl versus waiting on organic discovery — particularly valuable while the XML sitemap (C2) is being rebuilt.
- **Recommendation:** Generate an IndexNow key, host it at `/{key}.txt`, and add a lightweight server hook (e.g., in the product/order Nitro API routes or a scheduled job) that pings `https://api.indexnow.org/indexnow` when product/category pages change.

### M5. `og:image` and image assets reference the apex domain `nar30i3.ir`, not `new.nar30i3.ir`
E.g. `<meta property="og:image" content="https://nar30i3.ir/img/logo.webp">` and `imageBase: "https://nar30i3.ir/"`. If `nar30i3.ir` is intentionally the dedicated image/CDN host this is fine, but it should be confirmed that `nar30i3.ir` is not itself a competing/older live storefront (given the project name pattern), which would create a separate duplicate-content/canonicalization concern outside `new.nar30i3.ir`'s own scope. Flag for confirmation with the site owner.

### M6. `/offers` footer link — verify route exists
The footer template links to `/offers` (`pages/index.vue` and category footer), but no `pages/offers.vue` was found in the project (`sale.vue`, `latest.vue`, `one-size.vue` exist instead). Given C3 (soft-404s), a broken internal link here will silently return 200 with no content rather than visibly failing.
- **Recommendation:** Confirm whether `/offers` is a real intended route; if not, fix the footer link to point to `/sale` or remove it.

---

## Low Priority Issues

### L1. Large number of `modulepreload` script tags on every page (10–12+ per page)
Aggressive code-splitting is generally good for caching, but this many preloaded chunks on first paint (visible on homepage, `/category`, and error pages alike) can compete for bandwidth/priority on slow mobile connections in Iran, indirectly affecting LCP/INP. Not urgent, but worth a bundle-analysis pass once the more critical items above are resolved.

### L2. No `hreflang` tags
Not applicable/required — single-language (Persian) site with no regional variants detected. No action needed unless international expansion is planned (defer to the `seo-hreflang` sub-skill if that changes).

### L3. Cache-Control `max-age=86400` on dynamic HTML documents
The homepage HTML itself is served with `Cache-Control: max-age=86400` (24h) — for a page whose content should reflect live catalog data (sales, new arrivals), a full day of edge/browser caching risks serving stale storefront content. Confirm this is intentional (e.g., paired with active purge-on-publish) rather than a default catch-all cache rule.

---

## Mobile-Friendliness Notes (markup-level, no live rendering available)
- Viewport meta is correct and unrestricted: `<meta name="viewport" content="width=device-width, initial-scale=1">` — no `maximum-scale`/`user-scalable=no` blocking pinch-zoom. **Pass.**
- `dir="rtl"` set at the `<html>` level — correct for Persian content. **Pass.**
- Dedicated mobile bottom navigation (`mobile-bottom-nav`) and a separate compact mobile header (`lg:hidden` / `hidden lg:block` split) indicate a genuinely responsive (not just scaled-down desktop) layout. **Pass.**
- Icon-only buttons (search, cart) use `p-2` padding around ~20px icons — likely close to but should be verified against the 44×44px (Google)/48×48px (WCAG) touch-target minimum on real devices; not verifiable from static HTML/CSS alone. **Recommend a live Lighthouse mobile run once C1–C4 are fixed**, since third-party CSS/blank pages will otherwise distort the audit results.

---

## Core Web Vitals — Lab Estimate (from source inspection only; no field/RUM data available)

| Metric | Estimate | Basis |
|---|---|---|
| LCP | **Needs Improvement / Poor risk** | Render-blocking cross-origin CDN CSS (C1) delays paint on every page; homepage's hero/slider is itself an `animate-pulse` placeholder in SSR HTML (C4-adjacent), meaning the real LCP element likely only appears after client-side hydration + API roundtrip |
| INP | **Unable to estimate reliably from static source** — Vue 3 + Nuxt 3 hydration is generally INP-friendly, but the number of preloaded JS chunks (L1) and any main-thread work from client-only data fetching on `/category` (H1) are risk factors worth measuring live |
| CLS | **Needs Improvement risk** | Skeleton→content and spinner→grid swaps (M3) on homepage and `/category` without confirmed matching dimensions |

A full CWV verdict requires field data (CrUX/PageSpeed Insights) or a live Lighthouse run; the above is a source-level risk assessment only, and should be re-run after C1–C4 are fixed since those issues (dead CDN dependency, empty content states) will otherwise dominate and mask other CWV signal.

---

## Prioritized Action Checklist

1. **Critical:** Rebuild and redeploy the current `nuxt.config.ts` so `/vendor/fontawesome/css/all.min.css` replaces the live cdnjs.cloudflare.com reference (C1).
2. **Critical:** Fix the backend catalog/API so homepage and category data actually populate SSR output (C4) — escalate to backend team, this blocks most content-quality fixes.
3. **Critical:** Add real `robots.txt` and `sitemap.xml`, registered ahead of the `[...slug].vue` catch-all (C2).
4. **Critical:** Fix soft-404 behavior so invalid URLs return true HTTP 404 (C3); check nginx `error_page`/`try_files` and Nitro error propagation.
5. **High:** Server-render `/category` content instead of client-only fetch (H1).
6. **High:** Add `noindex, nofollow` to `/auth/*`, `/cart`, `/profile/*` (H2).
7. **High:** Add global canonical tags (H3); redirect HTTP→HTTPS (H4) and `www`→apex (H5).
8. **High:** Implement Organization/WebSite/BreadcrumbList/Product JSON-LD (H6).
9. **Medium:** Add security headers (M1), remove `x-powered-by` (M2), fix CLS-prone loading states (M3), implement IndexNow (M4), confirm `nar30i3.ir` vs `new.nar30i3.ir` image-host relationship (M5), fix/remove `/offers` link (M6).
10. **Low:** Review JS chunk count (L1), confirm homepage HTML cache TTL is intentional (L3).

---

## Files/Evidence Referenced
- `/media/sam/Dev1/Front/nar30i3.ir/nuxt.config.ts` — confirms local-vendor Font Awesome fix in source (line 40), not yet deployed.
- `/media/sam/Dev1/Front/nar30i3.ir/public/vendor/fontawesome/` — local vendor asset present on disk, unused by the live build.
- `/media/sam/Dev1/Front/nar30i3.ir/pages/[...slug].vue` — CMS catch-all page; confirms `createError({statusCode: 404})` is called in source but not honored by the live response (C3).
- `/media/sam/Dev1/Front/nar30i3.ir/server/api/pages/[slug].ts` — backend page-lookup API, correctly throws 404 for unknown slugs.
- `/media/sam/Dev1/Front/nar30i3.ir/new.nar30i3.ir-audit/homepage.html` — captured raw SSR HTML showing empty category/product sections and live cdnjs Font Awesome link.
- `/media/sam/Dev1/Front/nar30i3.ir/new.nar30i3.ir-audit/category.html` — captured raw SSR HTML showing spinner-only content for `/category`.
- `/media/sam/Dev1/Front/nar30i3.ir/new.nar30i3.ir-audit/product2.html` — captured response for `/product/2/x` demonstrating the soft-404 pattern.
