I built a dynamic sitemap generator on my platform. By mistake I generated some 300+ wrong url along with the right ones. And they have been there for couple weeks now. Recently I found out this mistake. Some of those wrong urls are already indexed by google. I spoke with one SEO specialist and he told me to follow two steps:
- Add all of those wrong url to Remove Url on web masters.
- Next
Disallow
all those url from robots.txt.
I did the first step. I don't know how to do the second step. I have some 300+ urls like bellow:
https://example.com/equip?category_id=semi-automatic
https://example.com/equip?category_id=automatic
https://example.com/equip?category_id=other
Currently I cant implement 404
on these urls from coding side. Its quiet complicated now. So could any body please tell me how can I disallow these from robots.txt ??