Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude from search engine index pages whose URL does not match the canonical one #1750

Closed
Alex300 opened this issue Nov 8, 2023 · 0 comments
Assignees

Comments

@Alex300
Copy link
Member

Alex300 commented Nov 8, 2023

[RU]
Если для страницы установлен Canonical Url и он не совпадает с ее URL'ом, добавить таким страницам <meta name="robots" content="noindex"> чтобы сообщить поисковикам что такие страницы не надо индексировать.

Не учитывать схему (https/http) и якорь (то что от в url'e # и далее).

Фича должна быть опциональной. Добавить настройку в Админ панель -> Конфигурация -> Заголовки и мета-теги

P.S. это может быть полезным т.к. сам Canonical Url не исключает страницы из поиска, а лишь сообщает поисковику, какою именно страницы из списка дублей отдавать в результатазпоиска.

Документация от Google

https://developers.google.com/search/docs/crawling-indexing/consolidate-duplicate-urls?hl=ru#best-practices

Не рекомендуется использовать директиву noindex, чтобы запретить выбирать ту или иную страницу в качестве канонической на одном сайте, поскольку это приведет к полной блокировке страницы в Поиске. Аннотации link с атрибутом rel="canonical" являются предпочтительным решением.

Так что это была плохая идея.

Откатить изменения!

Если ситуация изменится в будущем, можно вернуться к этому вопросу.

Для Яндекса же можно дополнительно использовать Директиву Clean-param

@Alex300 Alex300 self-assigned this Nov 8, 2023
@Alex300 Alex300 added this to the Siena 0.9.24 milestone Nov 8, 2023
Alex300 added a commit that referenced this issue Nov 8, 2023
@Alex300 Alex300 closed this as completed Nov 8, 2023
Alex300 added a commit that referenced this issue Nov 11, 2023
Alex300 added a commit that referenced this issue Nov 12, 2023
@Alex300 Alex300 reopened this Jan 22, 2024
Alex300 added a commit that referenced this issue Jan 23, 2024
@Alex300 Alex300 closed this as completed Jan 23, 2024
@Alex300 Alex300 removed this from the Siena 0.9.24 milestone Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant