Is there anything i can use in my htaccess to send 410 code to all the links but not some links ?
Example:
I would like to 410 this urls (List is about 40k links)
www.example.com/c1
www.example.com/c2
www.example.com/c3
www.example.com/c4
www.example.com/g1
www.example.com/g2
www.example.com/g3
www.example.com/g4
and so one....
but this links should not come 410, anything that start with c
or g
Like:
www.example.com/categories/
www.example.com/concreate/
www.example.com/colombs/
Right now I am using this code in my .htaccess
file but this also giving 410 to above links.
RewriteEngine On
RewriteCond %{QUERY_STRING} c
RewriteRule .* - [G,L]
ErrorDocument 410 default
Any help would be much appreciated.