Closed Bug 266049 Opened 20 years ago Closed 18 years ago

should send 410 not 404 for deleted files

Categories

(www.mozilla.org :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: timeless, Unassigned)

References

()

Details

404: File Not Found

/quality/help/boilerplate.html

We are sorry, the file you requested could not be found.

Please check the spelling and punctuation. Our servers are case sensitive, so
also be sure that the address has the correct case.

--
It'd be nice if the server reported that the file was deleted instead of simply
listing the 404.
If we deleted it, we shouldn't be sending 404 anyway, we should be sending 410.
Was that file deleted? If so, dolphinling is right. (It's quite easy to make
that a 410 using .htaccess.)
OS: Windows XP → All
Hardware: PC → All
it was dead in version 1.8 (when this bug was filed).
Well, a (meta refresh--that should be fixed) redirect has been added now, so
this particular file should be a 301.

http://rheet.mozilla.org/webtools/bonsai/cvslog.cgi?file=mozilla-org/html/quality/help/boilerplate.html

In general, though, I'm sure there are a few files around that should be 410 but
aren't. Do we even have a standard 410 page?
doubtful, note that this bug is about the general case, it just happened to be
filed in response to a specific instance.
Look in the html directory, if there's a 410.html then we do, if not, we don't.
Blocks: 265117
Summary: 404 should be nicer about deleted files → should send 410 not 404 for deleted files
Anne: surely that's not the right place to check it in? Don't these things go in
some special webserver directory?

Gerv
Gerv, I don't know. I know it was checked in there, but something like
/http-errors/410.html might have been a better location.

However, I just pointed out it existed, which was a question in comment 6.
(In reply to comment #8)
> Anne: surely that's not the right place to check it in? Don't these things go in
> some special webserver directory?

Gerv: They can go wherever we want to put them.  The root level of the document
root is where I've seen them on most other webservers I've personally seen that
have done this, so it's not that unusual of a place to put them.  They do have
to be inside the document root somewhere, because the config line in Apache that
adds them expects a URI, not a pathname.
Assignee: www-mozilla-org → nobody
QA Contact: danielwang → www-mozilla-org
We use 410 on files manually added to .htaccess as 410. This is working fine now that the 410.html is correctly used for these pages.

Please reopen this bug if you have a list of files that are deleted and currently respond with 404 (and should be responding with 410).
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → WORKSFORME
Product: mozilla.org → Websites
Component: www.mozilla.org → General
Product: Websites → www.mozilla.org
You need to log in before you can comment on or make changes to this bug.