內容簡介
Gone Control 外掛可將 WordPress 中已刪除的內容自動返回 410 (Gone) 狀態碼,這比預設的 404 (Not Found) 更符合 HTTP 規範,適用於永久刪除的資源。
【主要功能】
• 自動返回 410 狀態碼
• 支援已刪除的文章、頁面及自訂文章類型
• 支援已刪除的使用者及媒體附件
• 提供可自訂的 404 頁面模板
• 啟用後自動運作
外掛標籤
開發者團隊
原文外掛簡介
When content is deleted in WordPress, the default behavior is to return a 404 (Not Found) status code. However, according to HTTP specifications, a 410 (Gone) status code is more appropriate for resources that have been permanently deleted and will not return.
This plugin automatically returns a 410 status code for:
– Deleted posts
– Deleted pages
– Deleted custom post types
– Deleted users
– Deleted media attachments
Once activated, the plugin works automatically. When a visitor tries to access a URL that previously contained content but has been deleted or moved to trash, they will receive:
A 410 HTTP status code in the response headers
The standard WordPress 404 page template (customizable via your theme)
Related Resources
HTTP 410 Gone – MDN Web Docs
RFC 7231 – HTTP Status Codes
Google’s guidelines on 410 vs 404
