Site maintenance: Sun 15 Nov, from 12:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / General Questions / page_not_found / 404 - I dont want to use the ZC one....help

page_not_found / 404 - I dont want to use the ZC one....help

Started by dh010010 on 2 Oct 2013, 8:47 PM · Views: 450

Results 1 to 2 of 2
2 Oct 2013, 8:47 PM
#1
dh010010 avatar

dh010010

New Zenner

Join Date:
Aug 2012
Posts:
23
Plugin Contributions:
0

page_not_found / 404 - I dont want to use the ZC one....help

After looking at this all day I am starting to wind myself up!

So here is what I am trying to do. We have our own 404 error page that is quite complex. It checks for abuse then banns ips that are looking for admin files etc.

I want zen cart to use this custom .php 404 error file solely (not generate a page with template headers, page content etc) when a page is not found.

I am completely stuck!

Can anyone tell me where the code is in zen cart that dictates the page to load when a page is not found?

Any help at this point would be appreciated. :o)

We are on zc 1.5.1 and are using ceon uri mapping...... just for reference.

Thanks in advance
Dean

We Fix Information Technology - we're making I.T. simple!
https://www.wefixitonline.co.uk

3 Oct 2013, 3:09 AM
#2
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,816
Plugin Contributions:
4

Re: page_not_found / 404 - I dont want to use the ZC one....help

"includes/modules/pages/". do not have it in front of me, but think the name is page_not_found. Inside the not found page (folder) is a file labelled "header_php.php" which is called before the HTML templates are loaded. If based upon the request you do not want to show the usual 404 page, you can set a different error code and exit or use zen_redirect.

The glass is not half full. The glass is not half empty. The glass is simply too big!
Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker