I have a problem with one site. last year a hacked website. Several thousand links were generated there, which were in the directory https://site.uk/de/. All were directed to 410. In addition, the structure of the page has been changed and currently contains several hundred 404 errors + over 500 non-existent addresses directed to the main page. Is it a good solution to redirect these addresses to similar subpages + remove redirects from the main page? The website has dropped significantly in search results. Is locking the / de / password directory a good solution? Is it better to leave 410?
So to be clear, the website was hacked and used as a link farm? These links originate on /de/?
You are trying to determine the best way to handle the links with non-existent destinations?