Welcome to WebmasterWorld Guest from 54.145.13.215

Forum Moderators: phranque

Message Too Old, No Replies

HTTP 410 Gone

When removing a resource, use 410 Gone

     
9:47 am on May 29, 2005 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member pageoneresults is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Apr 27, 2001
posts:12166
votes: 51


4.2: HTTP 410 Gone

This does not mean the web does not allow for documents to be removed or deprecated. Content managers should avoid, when possible, simply removing resources, and should consider instead the correct standard procedure, which is to use the 410 gone status code ([RFC2616] section 10.4.11).

Whereas the 404 Not found status code only means that the server is unable to find the resource, the 410 gone status code means that the resource is intentionally unavailable. For the sake of semantics and caching (a 410 gone is cacheable unless indicated otherwise).

How many of you have actually gone as far as micro-managing your 404s vs 410s?

Guideline 4: "Cool URIs don't change", but cool content does [w3.org]

10:17 am on May 29, 2005 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Mar 30, 2004
posts:712
votes: 0


I don't remove files very often, but always make sure a 410 is returned.
9:00 am on June 1, 2005 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Feb 6, 2003
posts:661
votes: 0


always make sure a 410 is returned

How would I do this?

10:10 am on June 1, 2005 (gmt 0)

Preferred Member

10+ Year Member

joined:Sept 28, 2002
posts:505
votes: 0


How would I do this?

There is a RewriteRule flag in .htaccess returning a 410 status: [G] = "gone"

RewriteRule ^somepage.html$ - [G,L]

Regards,
R.

11:00 am on June 1, 2005 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Mar 30, 2004
posts:712
votes: 0


How would I do this

Redirect and RedirectMatch can also be used:

Redirect 410 /file.html
Redirect 410 /folder/

RedirectMatch 410 /file.html
RedirectMatch 410 /folder/

RedirectMatch allows regular expressions:
RedirectMatch gone ^/folder/subfolder/(0[6-9]¦1[0-9]¦2[0-8])\.html

4:20 pm on June 1, 2005 (gmt 0)

Full Member

10+ Year Member

joined:Mar 3, 2004
posts:270
votes: 0


I return 410's for content that is really gone. I've seen absolutely zero side effects or changes in search engine behavior because of this. I imagine they'll continue to pound on the 410 URIs until all the inbound links are gone.