| 开发者 |
solarissmoke
XanderCalvert |
|---|---|
| 更新时间 | 2026年5月21日 16:26 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
410 response for URLs corresponding to content that has been permanently removed from your site. Originally created by Samir Shah, now maintained by Matt Calvert. When a post or page is deleted, the plugin logs the old URL and returns a 410 response when that URL is requested. You can also manually manage the list of obsolete URLs.
The HTTP Specification defines the 410 Gone response for resources that have been permanently removed. It informs search engines and crawlers that the content will not return, improving crawl efficiency and SEO clarity.
This plugin is actively maintained by Matt Calvert as a personal project, informed by previous professional experience with similar 410-handling logic. No proprietary or employer-owned code has been used.
/wp-content/plugins/ directoryThe default message is a simple plain text message that reads "Sorry, the page you requested has been permanently removed." This is because many people want to minimise the bandwidth that is used by error responses.
If you want to customise the message, just place a template file called 410.php in your theme folder, and the plugin will automatically use that instead. Take a look at your theme's 404.php file to see how the template needs to be structured. You can also hook into the mclv_410_response action to trigger any specific events for queries resulting in a 410 response.
The plugin has been tested with the following caching plugins, and should work even if they are active:
note_inserted_post() method (changed [] .= to [] =).get_post() returns null.css/admin.css and js/admin.js).wp_410 to mclv_410 for WordPress.org compliance.wp_410_response action hook is deprecated. Use mclv_410_response instead. The old hook still works but will trigger a deprecation notice.410.php to your theme folder.mclv_410_response action to allow users to customise the response message when a deleted article is requested