问题原文
原帖链接 · Abderrahim Lahrach · CC BY-SA 4.0
I bought an auctioned domain to build my new project, from my analysis with Ahrefs, people that were behind this domain had a subdomain called "forum" for their forum, and somehow they didn't know how to protect it so there's thousands of spam threads (pharmacy, drugs and so forth), and probably they deleted the subdomain afterwords, if Googlebot ever fetch those links, it'll receive 404, but I want to 410 the whole subdomain to deliberately say I deleted this subdomain, I know if I had 404 Googlebot will go back to it a few times until it count it as 410, but I really want to 410 if it's possible and I have no clue how to do that.
The main domain is built using WordPress and I have Yoast premium plugin. Server is Nginx with Siteground but I have no access to it. I tried .htaccess that's located inside the WordPress installation but I have no clue what to type in it exactly.
Last thing that is strange, all these subdomains URLs had thousands of thread spams:
http://ww1.forum.example.com/http://forum.example.com/http://ww17.forum.example.com/http://ww38.forum.example.com/http://www.forum.example.com/http://ww11.forum.example.com/http://ww35.forum.example.com/
已采纳解答
原帖链接 · Maximillian Laumeister · CC BY-SA 4.0
if googlebot ever fetch those links, it'll receive 404
If Googlebot receives a 404 response when fetching those links, that means the subdomains were not properly deleted. Make sure there are no DNS entries whatsoever for those subdomains, so that neither you nor any bots get any server response back at all.
To answer the other part of your question, there is no reason to put up a server to respond to those URLs with 410 GONE. The fact that no server responds at all is enough to tell the search engines, and anybody else who might visit, that the pages no longer exist and should no longer be indexed.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
