News for hackers. Stuff that matters.
Re:Make your 404s into 302s by Etheryte on Friday May 29, 2020 @08:59AM (#23349380)
The 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/

Re:Make your 404s into 302s by woodrowbarlow on Friday May 29, 2020 @11:19AM (#23350953)
doesn'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.

Re:Make your 404s into 302s by grifball on Friday May 29, 2020 @12:02PM (#23351610)
Yeah. 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.

Re:Make your 404s into 302s by ric2b on Friday May 29, 2020 @02:43PM (#23353903)
That sounds much better, love the idea and it's almost as easy, just need a custom 404 page template.
Re:Make your 404s into 302s by saalweachter on Friday May 29, 2020 @12:06PM (#23351679)
I could also see a 404 iFrame.