Kennisbank > lotusscript > Custom 404 errorpages with Lotus Domino

Custom 404 errorpages with Lotus Domino

Ferdi Verlaan

Ferdi Verlaan

Manager OTC & NOC

Although we try to prevent it, it is always possible to have deleted or moved content within your website. In Apache you can easily create custom 404 pages. In Lotus Domino it is just as easy!

Create a new form within your website application (website.nsf) with the name and alias: “$$ReturnGeneralError“.

Image:Custom 404 errorpages with Lotus Domino

Just place all your html code within this form to resemble your own website look & feel. We also place a custom google javascript to ensure users can search within our site for the missing content. Just place the following code in your html:

<script type=”text/javascript”>

var GOOG_FIXURL_LANG = ‘en’;

var GOOG_FIXURL_SITE = ‘http://www.example.com’

</script>

<script type=”text/javascript”

src=”http://linkhelp.clients.google.com/tbproxy/lh/wm/fixurl.js”>

</script>

This widget automatically provides suggestions or alternatives for the missing content, based on the Google index of your website. Visitors can now find the missing information more easily. From our own experiments it seems that the sitemap and closest match functionality wasn’t available. This is probably because of the fact that our website isn’t indexed completely by Google at the moment.

Image:Custom 404 errorpages with Lotus Domino

Ferdi Verlaan

Over de auteur

Ferdi Verlaan

Werkzaam bij AASHQ sinds 2005, beheert en inspireert Ferdi een team van uitstekende ontwikkelaars, systeem- en netwerkingenieurs.

Hij is bedreven in verschillende programmeertalen maar ook zeer kundig in zowel Windows (Server) als Linux-besturingssystemen.

Ook interessante artikelen

Deze artikelen kunnen jou ook misschien aanspreken

woensdag 26 april 2023

De snelheid van onze nieuwe website

Ferdi Verlaan

Ferdi Verlaan

Manager OTC & NOC

Ferdi Verlaan

Ferdi Verlaan

Manager OTC & NOC

Neem contact met ons op

En breng jouw IT omgeving ook naar 'the next level'.

Neem contact op