Welcome to WebmasterWorld Guest from 54.196.208.6

Forum Moderators: DixonJones & mademetop

Message Too Old, No Replies

How to block these urls

     
6:13 am on Nov 18, 2010 (gmt 0)

Junior Member

5+ Year Member

joined:Sept 22, 2010
posts:43
votes: 0


This is my url,

mydomain/Home.do?parameter=addToCart&productID=10485&quantity=1

The Quantity and Productid varies

How could I block these urls in Robots.txt
5:56 am on Nov 21, 2010 (gmt 0)

New User

10+ Year Member

joined:Feb 12, 2003
posts:26
votes: 0


Add below text into your Robots.txt (* is wildcard which is supported by google, bing and yahoo)

Disallow: /Home.do?parameter=addToCart*productID=*quantity=*
7:06 am on Nov 21, 2010 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member tangor is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Nov 29, 2005
posts:6142
votes: 281


Your product pages are already indexed, correct? Why allow any "addToCart" links?

Disallow: /Home.do?parameter=addToCart

Should stop all those links from indexing...
12:35 pm on Nov 22, 2010 (gmt 0)

Junior Member

5+ Year Member

joined:Sept 22, 2010
posts:43
votes: 0


These urls are not getting indexed but showing empty redirects in Google webmaster tool.