My wordpress site has nearly 3000 posts that was deleted recently. Instead of showing error code 404, How do I show error code 410 to all deleted or not found posts and pages?
you don't need to create a page. just add this code before the get_header(); in you 404.php template
header($_SERVER["SERVER_PROTOCOL"] . " 410 Gone");
Hope this helps!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With