I want google to stop craw/index duplicate and non existing page in my website.
Google index page by auto creating url parameters from my site which then makes no sense/non existing page and some of them makes duplicate content.
Example:
Google index these type of url which do not exists
http://www.example.com/url-pr1/url-pr2/?keyword=url-pr1&url-pr3=url-pr4
Google index these type of url which makes duplicate content
http://www.example.com/page.php?link=url-pr1&url-pr2=url-pr4
//duplicate for page like http://www.example.com/url-pr1/url-pr4/
I have added ulr parameters in webmaster tools as No-Urls
but still google keeps indexing these kind of url.
How can I tell google that these pages do not exist or have duplicate content and to not index pages by auto creating url parameters.
Shall I use redirect to 404 page for url parameters that do not make sense and if so how to do it using htaccess.
Please see and suggest any possible way to do it.
Thanks.