Online Tutorials & Training Materials | STechies.com
Register Login

Change 404 Page to 410 page in Wordpress

|| || 1

Change 404 Page to 410 page in Wordpress
Stechies

Hi in my wordpress i want to give 410 Return code insted of 404 page

In Wordpress it is very simple you can install Plugin

OR

Edit 404.php Page on you current running theam and add

header("HTTP/1.0 410 Gone");

on the top of the Page it will work

Regard's

 


Comments

  • 14 Sep 2017 12:39 am

    admin kindly clear this. at which place we should palce code header("HTTP/1.0 410 Gone"); in 404.php ?