A
A
andreyqin2014-09-15 11:29:51
Search Engine Optimization
andreyqin, 2014-09-15 11:29:51

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

2 answer(s)
K
kafeuri1, 2014-09-15
@andreyqin

When generating the page, put pregmatch , and if sort[numbers] is found in the URL, enclose the content in noibdex

M
mobidev, 2019-06-04
@mobidev

in robots.txt
Disallow: */sort*

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question