5 ms·
404s are useful though.. how annoying would it be if you wanted to get to a specific part of the site, and you kept getting redirected to somewhere else without
by fizzizist1 6y ago
404s are useful though.. how annoying would it be if you wanted to get to a specific part of the site, and you kept getting redirected to somewhere else without being informed that the part you are trying to access doesn't actually exist. 4 errors exist for a reason.
- m-p-3 6y agoOr sometimes a page stopped existing for a valid reason, and retrieving an old page that contains outdated information could do more harm than good.
- owl57 6y agoIn an ideal world, a page that stopped existing for a reason would be replaced by some text about that reason, not a generic "there's nothing here".
- _-___________-_ 6y agoThis would be best conveyed by a 410 Gone response with explanatory text about the reason in the response body.
- gravitas 6y agoThese ideas don't scale though - a 404 handles everything, not just textual content pages (meaning like images, css, js, etc. - the underlying plumbing for most sites). Nobody is going to sit there and write 404/410 content for moved assets one by one when they rebrand their site, that's madness. In my travels, most folks who actually care about this (SEO links) build an extensive alias/redirect map for the old/previous core URLs they want to remain functional as part of their rebrand, when the new site goes live the redirects are dropped in as well. This is especially true if they've ever published the URLs on physical media (mailed postcards, e.g.).
- cxr 6y ago> Nobody is going to sit there and write 404/410 content for moved assets one by one when they rebrand their site Maybe the monkey-do approach to web publishing that underlies those decisions is the problem.
- davnicwil 6y agoThis is right - 404 pages are the right UX when you have a 'stateful' resource that can be deleted, and you need to show that the URL (or ID param within) is correct, and once pointed to a resource, but now that resource has been permanently deleted and can't be shown any more. In a sense this information conveyed by the 404 page is now the immutable 'resource' that will stay permanently at that URL. Doing a redirect breaks this, it's lossy and usually a bad UX.
- hamilyon2 6y ago"Was here but deleted" has its' own http code now, that is 410 AFAIK.
- throwanem 6y agoHas had since 1997 at least, cf. https://tools.ietf.org/html/rfc2068 https://tools.ietf.org/html/rfc2068 - it's just that nobody uses it.
- OJFord 6y agoIt's used in APIs, just not user-facing documents (or rather would-be documents). Too late for that though, while laymen pretty much get '404', introducing a subtly different numeric code to co-exist would be a bit much, I think. And also pretty worthless, anecdotally I think actually displaying big '404' text is on a downward trend, probably because of the prevalence of SPAs/webapps in general.
- throwanem 6y agoYeah, I mean, for the lay public to have to know what "404" means feels like a side effect of the early web being a frontier. What's important to tell the user is "there's nothing here", and that can and should be done without invoking any magic numbers at all.
- davnicwil 6y agoA super useful distinction for APIs for similar reasons. Interesting these statuses are often remapped for the web, where a 410 is often implemented as a 404 like in the scenario I describe and the 'true' 404 is often implemented as a 302.
- Etheryte 6y agoThe subpage called "How"[1] covers this though. The idea is to redirect you through all the historical versions and then to a 404 if no match is found on any of them. > www → 2017 → 1997 → Show 404 error [1] https://4042302.org/how/ https://4042302.org/how/
- woodrowbarlow 6y agodoesn't this mean when they end up on your 1997 site (without realizing it, because all they did was click a link), and then try to navigate around, they're stuck in the old version of your site? edit: maybe not, because the old site was written to assume it's running at the current site's subdomain? i guess it depends on much you've changed your URL structure since then. that thought makes me a little squeemish. it seems like a nice approach would be to return the 404, and make your 404 page render a link that says "try an archived version?". you gotta let the user know that what they're about to see might be stale.
- grifball 6y agoYeah. I really like this idea of warning the user. Keep the usability without losing the functionality. Also, not sure if anyone is thinking of this, but there are security concerns if you were to serve up old pages on a new domain. If that old page has a vulnerability, it now has access to data in the new domain. This is more for archiving, so the old pages wont get patched.
- saalweachter 6y agoI could also see a 404 iFrame.
- ric2b 6y agoThat sounds much better, love the idea and it's almost as easy, just need a custom 404 page template.
- deleted 6y ago[deleted]