N
N
Nikolay Firsov2018-09-20 14:00:20
Search Engine Optimization
Nikolay Firsov, 2018-09-20 14:00:20

How to disable all pages with the ending ?page=* in robots.txt?

On the site, for example, the first page of each section looks like
https://domen.ru/collection/kategoria
And after going to the second page of the section, the address bar takes the form
https://domen.ru/collection/kategoria?page=2
https:// domen.ru/collection/kategoria?page=2 etc.
How can I disable the indexing of such pages?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ilya Loginov, 2018-09-20
@Niolay_Firsov

Disallow: /collection/kategoria?*page=

D
DrMax-seo, 2018-09-21
@DrMax-seo

Disallow: /categoria?page
If the categories are different, then the whole pagination is crushed like this:
Disallow: page=
But! This is a completely wrong approach to organizing pagination.
1. It still works, you need to put the noindex, follow meta tag on the pagination pages
2. Set the canonical on the first page (if it’s a yashka) or on the page with a list of all products (Google)
3. don’t forget about prev-next

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question