C
C
colorkid2017-07-01 12:12:22
Search Engine Optimization
colorkid, 2017-07-01 12:12:22

How to remove sorting by price from the index in the robots.txt file?

Hello. Site on WP + WOOCOMERCE There are product categories, the display of products in which can be sorted by getting links like site/product-category/product-category/?orderby=
price robots.txt file?
And I'm also interested in whether it is necessary to close the basket page and the checkout page from the index. Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
igorux, 2017-07-01
@colorkid

You can close them using a regular expression or the Clean-param directive:
https://yandex.ru/support/webmaster/controlling-ro...
https://yandex.ru/support/webmaster/controlling-ro...
For example :
Disallow: /product-category/*?orderby=price It
's best to close your shopping cart and checkout.

N
Niriter Inc., 2017-07-01
@niriter

Disallow: /product-category/*/?orderby=price

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question