How does Zen Cart handle a ‘Page Not Found’?


You may have noticed a couple of settings in your Zen Cart Admin that can lead you to believe that Zen Cart will handle all instances of a ‘page not found’ error by either redirecting the visitor to your store home page or to the Page Not Found define page.

However, it’s important to note that Zen Cart’s Missing Page Check can only check for missing pages that are within the Zen Cart structure.  In other words, the check is carried out on the part of the URL that is after index.php?main_page=.  Such as http://www.zen-cart.net/demo/index.php?main_page=page8 or http://www.zen-cart.net/demo/index.php?main_page=jdfjkdklf.

In this case, you will be redirected to either a Page Not Found page or the Home Page according to your setting in Zen Cart Admin.  An example of the Page Not Found page is shown here:

Zen Cart Page Not Found

Zen Cart cannot prevent a call to a html page or image file, for example, that are outside of the Zen Cart code.  This means that trying to access an invalid URL such as http://www.zen-cart.net/demo/frogs.htm or http://www.zen-cart.net/demo/frogs.jpg would result in a standard 404 Page Not found error, as shown in the example below:

Zen Cart Page Not Found

Due to the nature of an ever-changing online store, it is important that we do not leave our visitors at the dead-end of a 404 Page Not Found error.  Next up, we will look at a couple of different options to avoid displaying these errors to our visitors.

     
   
     

,

More Zen Cart:

  1. Display a Search Box on ‘Page Not Found’ page in Zen Cart
  2. Display Featured Products on ‘Page Not Found’ page in Zen Cart
  3. What makes a great ‘Page Not Found’ 404 Error page for Ecommerce stores?
  4. Display Advanced Search on ‘Page Not Found’ page in Zen Cart
  5. Zen Cart v1.38a Demo
  1. No comments yet.
(will not be published)

Notify me of followup comments via e-mail. You can also subscribe without commenting.