User-agent: * # DO NOT re-add Disallow lines for the five widget routes (bare Arabic and the # /en/ variants further down). They are kept out of the index by # `` in the page head, and a # noindex only works if the crawler is allowed to FETCH the page and read it. # Disallowing them here cancelled the noindex: Google never requested the page, # so it never saw the tag. Worse, any widget URL a shop links to from its embed # could still be indexed URL-only (bare URL, no title or snippet) and could # never be removed, because removal also requires crawling the page to # re-confirm the noindex. Crawl budget on five small pages is not worth that. # Same lesson as the /api block below: blocking the fetch blocks the signal. # Block common administration paths as a security and SEO best practice. Disallow: /admin/ # Block API route handlers by default. These return JSON / soft-404 HTML and # must never appear in search results. Disallow: /api # ...BUT explicitly allow the read-only price/content endpoints that pages # call while rendering. Google does not fetch robots-disallowed subresources # during rendering, so blocking these meant the Web Rendering Service saw # empty prices on 174 pages. More specific Allow rules win over the broader # Disallow above. These endpoints are public, cached and contain no secrets. Allow: /api/gold-live-rates Allow: /api/gold-rates Allow: /api/silver-rates Allow: /api/workmanships Allow: /api/alloy-markups Allow: /api/silver-markups Allow: /api/blogs Allow: /api/tags # NOTE: We deliberately DO NOT block /_next/ — that directory holds the # JS and CSS bundles Googlebot needs to render the page. Blocking it # would break rendering and hurt SEO. Next's static assets are not # indexable as pages, so there is nothing to gain by disallowing them. # English wiki articles are crawlable: the old `Disallow: /wiki/en/` block (a # dead path anyway — the real route is /en/wiki/) is removed so Google can # reach them and read their robots meta. # # NOTE: not all of them are translated. 18 English wiki URLs still serve the # Arabic article as a fallback — same body, `lang="en"` — and those carry # `noindex, follow` on purpose. That noindex is correct and must stay until the # articles are actually translated: lifting it would publish Arabic prose to # Google as English. They must stay crawlable for the noindex to be read. Disallow: /blog/ # Block unwanted English or internal paths Disallow: /transparent # `Disallow: /en/tag` is removed because the English tag pages WORK and should # be indexed, which is the policy the Arabic side already follows. # # English has its own two tags — /en/tag/gold-trade and # /en/tag/gold-market-analyst — and both answer 200. Blocking them was the # actual inconsistency: live, linkable pages that Google was forbidden to # fetch. /en/tag/information and /en/tag/gold-news 404 because those tags do # not exist in English at all; that is a correct 404 for a missing entity, not # a broken page, and it needs no rule either. # The five /en/ widget routes used to be listed here. Removed for the same # reason as their bare-Arabic twins at the top of this file: they carry a # noindex meta tag, and a disallowed page is never fetched, so the noindex is # never read. Leave them crawlable. Disallow: /en/allowElement Disallow: /en/allowedElements Disallow: /en/remarkPlugins Disallow: /en/components Disallow: /en/disallowedElements Disallow: /en/urlTransform Disallow: /en/children # Sitemap location Sitemap: https://gold.sa/sitemap.xml