I have a url that starts like this. www. example com/category/post/attachment/12345
Search engines always try to reach attachments. But I want to stop that. how can I do it? the attachments no longer exist.
I want every time www. example com/category/post/attachment/12345 is entered to www. example com/category/post/ is redirected
thanks.
Disallow: /category/post/*