WordPress.org

Make WordPress Core

Opened 22 months ago

Closed 8 months ago

Last modified 8 months ago

#20958 closed feature request (wontfix)

Add to the Template Hierarchy the 410 error page

Reported by: byteee Owned by: byteee
Milestone: Priority: normal
Severity: normal Version:
Component: Template Keywords:
Focuses: Cc:

Description

In my last project where I migrate a web from asp to wordpress, I have some pages that not longer exists. Normally, we do a 301 redirection to the home page or some other place. But digging a little in google, if we get a page that not longer exists, its better to return a 410 response code instead of 301 code (talking about SEO aspects).

I did it manually following this post: http://otroblogmas.com/retornar-410-wordpress/

I think that we can include in the Template Hierarchy the 410.php file to show it when we are getting a page that not longer exists.

Change History (2)

comment:1 c3mdigital8 months ago

  • Component changed from General to Template
  • Resolution set to wontfix
  • Status changed from new to closed

Doesn't the template_include filter handle this situation? I'm closing as wont fix, if anyone thinks this should be discussed further please reopen.

comment:2 SergeyBiryukov8 months ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.