So, I am deleting a bunch of URLs and want to mark them with 410 response code.
I see a similar topic here: https://generatepress.com/forums/topic/custom-410-error-page/
As suggested in the above topic, I have made a copy of the 404.php and have created 410.php. But it is very basic. I’m not very familiar with PHP codes.
Previously, I used a plugin to set a page (URL included) I created as 404 page. So, Whenever there is a 404 error, instead of simple page, the page I created is shown.
The basic 410 page is working fine now. But I was wondering if there is a way to set a custom page (the one in the URL included) as 410 page (preferably without a plugin)?