Last updated on September 26th, 2023 at 04:50 pm
Does your website presents “Error 404 – Page not found” messages to your users?
Arquivo.pt offers a solution for this problem through Arquivo404.
Just insert a single line of code in the page that generates the 404 error message on your website and web-archived pages will be presented to your users instead of pages not found.
How does Arquivo404 work?
When a page is no longer on a website, Arquivo404 checks if a preserved version exists.
When a user tries to access a page that is no longer available on a website, Arquivo404 automatically checks if there is a version of that page preserved in Arquivo.pt.
If the page exists in Arquivo.pt, a link is presented so that the user may visit this version. If it does not exist, the normal error page is displayed.
See Arquivo404 at work in this example of an error page that presents a link automatically generated by Arquivo404.
How to install arquivo404 on your website?
The code in Arquivo404 can easily be adapted. You can for example create a customised error message.
Hint for WordPress websites: When editing the 404 error page and inserting the arquivo404 script inside the <body>, you must put the <!– wp:html –> tag at the beginning and the <!– /wp:html –> tag at the end, otherwise the script will be deleted.
If you have any questions or issues, please contact us!
- Examples of arquivo404 in action
- Arquivo404 code on GitHub
- Slides about arquiv404
- Presentation at IIPC Web Archiving Conference 2022 (Session 13 #2)
- Video Arquivo404: historical content instead of broken links (in Portuguese)
- Video tutorial for non-experts “How to implement Arquivo404 on a website” (in Portuguese)
- Video “Muda num Minuto” – Arquivo.pt’s Arquivo404 service (in Portuguese)
Short link to this page: arquivo.pt/arquivo404en