跳到内容 跳到侧边栏

本主题包含 0 則回覆 ,有 0 声音 。

最后由 peterJ-48 3 weeks, 2 days前 更新。

协助者:: Noman.

作者 帖子
26 11 月, 2025 于 2:21 下午 #17612310

peterJ-48

Background of the issue:
Hi,

I want to block the My account page, Basket (cart page) and Check out page etc. in robots.txt from being crawled by search engines.

We have 20 languages and slugs are translated.

My questions is: Is it true that it is possible to use wildcard even when slugs are translated? According to ChatGpt using wildcard is possible and better (safer), however I cannot find this specifically being described in your documentation.

Exampel with Basket page:

What is the correct and best way?

With wildcard like this:

# --- Block Cart, Basket ----
Disallow: /basket/
Disallow: /*/basket/

Or by listing the basket in all languages like this:

# --- Block Cart, Basket ----
Disallow: /basket/
Disallow: /bg/кошница/
Disallow: /hr/kosara/
Disallow: /cs/kosik/
Disallow: /da/kurv/
Disallow: /nl/mand/
Disallow: /fi/kori/
Disallow: /fr/corbeille/
Disallow: /de/korb/
Disallow: /el/καλάθι/
Disallow: /hu/kosar/
Disallow: /it/cestino/
Disallow: /no/kurv/
Disallow: /pl/kosz/
Disallow: /pt-pt/cesta/
Disallow: /ro/cos/
Disallow: /ru/корзина/
Disallow: /es/cesta/
Disallow: /sv/korg/
Disallow: /tr/sepet/

Symptoms:
I am not able to find a description in your documentation.

Questions:
Can I use wildcard even when slugs are translated?