A WordPress plugin that ensures proper HTTP 410 (Gone) status codes are returned for deleted posts, pages, and custom post types, improving SEO and user experience.
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
- WordPress 5.0 or higher
- PHP 7.2 or higher
bash ./dev/init.sh && make docker.up
make connect.php
composer installDon't forget update your hosts file
127.0.0.1 wp410.local.
WP plugin directory plugin-dir.
- Issues: GitHub Issues
- Documentation: GitHub Wiki
- WordPress Support: WordPress.org Plugin Page
This plugin is licensed under the GPL v2 or later.
- Author: Igor Tron
- Contributors: See all contributors
Made with ❤️ for the WordPress community