seo – How do I show the status "410 Gone" for previous product pages with? Product query string from a Netlify _redirects file?

I have problems removing old content from Google search results. One of the suggestions was to redirect the old pages to the 410 error page so that Google knows to leave these pages. The original website was created in WordPress. I'm using Netlify and hugo now.

  • The old pages = ...
  • My new pages are / ...

I tried

  • / product / * 410.html 410
  • /? product / * 410.html 410

In Myself _redirects file but no luck. I also have 301 in _redirects.

How can I configure this correctly?