Hello, We have an e-commerce website with dynamic urls: "?cid=" and "?pid=" . I have added this to the robots.txt: Disallow:/*? and I have requested to remove the url using "/filename?cid=" and "filename?pid=" This should remove all the dynamic urls from google index right?
Disallow: *pid=* Disallow: *cid=* * means group of characters ? means one character Depending on what you are trying to do, the following may also be useful ? In "google webmaster tools" > Site configuration > Settings > you will find "Parameter handling"
I think disallowing it robots.txt should help you remove them from Google index. But wait for some days once you have added them in robots.txt
Alternatively since you have a dynamic site you could serve a ROBOTS header on those pages. So only on the pages where there is a cid or pid parameter, show the following in your <HEAD></HEAD> block: <META NAME=ROBOTS CONTENT=NOINDEX> Also take vagrant's advice on your robots.txt file - with the one you've entered you're risking removing everything from Google's index.