Custom 404 Page

2 posts by 2 authors in: Forums > CMS Builder
Last Post: December 15, 2011   (RSS)

By theclicklab - December 15, 2011

Hi there, I need to setup a custom 404 page

I see that I can change this:

if (!$pagesRecord) { dieWith404("Record not found!"); }

to something like this:

if (!$your_tableRecord) { header("Location: http://www.mysite.com/"); exit; }

But I still want to pass a 404 header - How would I do this?

Many Thanks