Jump to content

Disallow disabled categories in robots.txt


m3w

Recommended Posts

Hello,

i'd like that some categories child of mother cat of my prestashop will be not index on google.

Example:

 

- CAT 1

--- CAT A

--- CAT B

--- CAT C

 

How can i set my robots.txt to disallow all the categories child of CAT 1 (in few words i need to disallow CAT A, CAT B, CAT C)?

 

Hope anyone could help me to figured out

 

 

 

Link to comment
Share on other sites

it's not possible to do it in bulk, mainly because categories urls looks like:

 

website.com/5-category

website.com/6-subcategory1

website.com/7-subcategory2

website.com/8-subcategory3

 

it mean that you have to block subcategories one by one

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...