Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Custom 404 Page Not Found

Include Page
Legacy Catalog Warning
Legacy Catalog Warning

Introduction

This brief tutorial will explain how to create a page that will be rendered to the client whenever a 404 (page not found) is generated. This will give the end user a friendly looking page, but still return an HTTP status code of 404.

Whenever a page is not found on the catalog, the system will look for an arbitrary page at the location of:

Code Block
themeDJango

/404.html

The earliest way to accomplish this is to create an arbitrary page that URI under.

unmigrated-wiki-markup
Panel
[

Main

Menu|/mainMenu.do@merchant] {rarr} [Catalog|/catalog/chooseHostLoad.do@merchant] {rarr} Choose Hosts {rarr} Manage Arbitrary

Menu Catalog [Choose Hosts] Manage Arbitrary Pages

Below is an example of the arbitrary page.

Warningnote

Make sure that if you receive any style sheets or graphics from this page that you DO NOT use relative URLs. Because the page can be rendered at any URL on the site that is requested, relative URLs would confuse the browser and lead to broken images