Skip to content

hokoo/wp-gone-control

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WP Gone Control: development environment

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.

Plugin description

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

Requirements

  • WordPress 5.0 or higher
  • PHP 7.2 or higher

Local dev installation

bash ./dev/init.sh && make docker.up
make connect.php 
composer install

Don't forget update your hosts file 127.0.0.1 wp410.local.

Development

WP plugin directory plugin-dir.

Usage

Support

License

This plugin is licensed under the GPL v2 or later.

Credits


Made with ❤️ for the WordPress community

About

WordPress plugin. Ensure 410 HTTP status code for deleted entities.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors