I want to remove the pages from search engine by using robots.txt to not to index such pages.
The repeated URL's Containing the same content appear as
website.com/category.html?dir=asc&mode=list&order=price&p=anypage
layered-navigationmagento-1.9robots.txt
I want to remove the pages from search engine by using robots.txt to not to index such pages.
The repeated URL's Containing the same content appear as
website.com/category.html?dir=asc&mode=list&order=price&p=anypage
Best Answer
To block those kind of URLs with
robots.txt
you could use the following lines:This will tell user-agents not to access all URLs which contain
ascending/decending
sorting,grid/list
mode,position/name/price
order andpagination
. To learn more about robots.txt files click here.