Answer the question
In order to leave comments, you need to log in
How to disable indexing of sorted pages?
On the catalog pages of the online store there is sorting by some parameters, it doesn’t matter.
A page without sorting has something like this URL:
site.ru/catalog/123
where, 123 is the category id, which, accordingly, can change. The
URL of the page with the selected sorting looks like this
:
site.ru/catalog/123/sort1
there are several sorts, and at the end there can be sort2, sort3, etc.
Question: how to close pages with sorting from indexing? Those. The principle, roughly speaking, is this - the first option is indexed, the second one is not.
Answer the question
In order to leave comments, you need to log in
When generating the page, put pregmatch , and if sort[numbers] is found in the URL, enclose the content in noibdex
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question