thumbnail- erro404-en-

Put an end to “page not found” on your website

Last updated on August 17th, 2022 at 09:09 am

Does your website present “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.

How Arquivo404 works

example-fccn-arquivo404_

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 file404 on your website?

The simplest implementation of file404 is to insert the following line of Javascript code on the 404 error page:

<script type="text/javascript" src="https://arquivo.pt/arquivo404.js" async defer onload="ARQUIVO_NOT_FOUND_404.call();"></script>

The code in file404 can easily be adapted. You can for example create a customised error message.

To know more