When a page is deleted on your website, it’s important to inform search engines so they can remove it from their index. This plugin implements the 410 HTTP status code for deleted pages, which tells search engines that the page is no longer available and should be removed from the index.
- Upload the plugin files to the
/wp-content/plugins/directory, or install the plugin through the WordPress plugins screen directly.
- Activate the plugin through the ‘Plugins’ screen in WordPress.
- That’s it! The plugin will automatically implement the 410 HTTP status code for deleted pages on your website.
How do I know if the 410 HTTP status code is being implemented for deleted pages on my website?
You can use a tool such as Google Search Console to check the HTTP status code for your pages. If a deleted page returns a 410 status code, it means the plugin is working correctly.
What happens if I deactivate the plugin?
If you deactivate the plugin, the 410 HTTP status code will no longer be implemented for deleted pages on your website.
以下人員參與了開源軟體〈Remove Deleted Pages from Search Index〉的開發相關工作。參與者
將〈Remove Deleted Pages from Search Index〉外掛本地化為台灣繁體中文版
- Registers the rdp_deleted_page_410 function to the template_redirect action, which checks for a 404 status and whether the requested URL exists in the deleted_urls table. If it does, it sends a 410 status header.
- Creates a new table called deleted_urls upon plugin activation by using the register_activation_hook and the rdp_create_deleted_urls_table function. This table stores deleted URLs with a unique constraint on the URL field.
- Hooks the rdp_store_deleted_url function to the before_delete_post action, which stores the URL of a post or page before it’s permanently deleted.
- Initial release