這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Remove Deleted Pages from Search Index

外掛說明

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.

安裝方式

  1. Upload the plugin files to the /wp-content/plugins/ directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress.
  3. 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〉的開發相關工作。

參與者

變更記錄

3.0

  • Added functionality to handle trash status for posts and pages meaning that pages placed in ‘Trash’ is now added to the list of URLs with status code 410. This includes registering to ‘trashed_post’, ‘untrashed_post’, and ‘before_delete_post’ WordPress actions.
  • Created new admin page for manual management of deleted URLs. Administrators can manually add and remove URLs to and from the deleted_urls table.
  • Improved security by using wp_nonce_field to protect against CSRF attacks.

2.0

  • 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.

1.0

  • Initial release