I used to have php script which made dynamic pages like this.
and so on
the problem is that I have removed the script from my server and I have static html pages like index.html and the above pages are still works because of that ? after the first / because the server is attaching those files as domain.com/index.html?keyword-one,23
They are all indexed by search engines and I dont want 50 duplicate content from my index.html pages cuz all the above pages displays default html page /? <- because of that.
is there any way to show error 410 gone using htaccess?
I used RewriteRule ^index.html$ - [R=404,L,NC] and it is not working.
Then I tried RewriteRule ^/?$ - [R=410,L,NC] and it works but if I type www.domain.com then I get the error page and it does not open default index.html page.
Is it possible if the url contains ? then just throw a 410 page?