Page 1 of 1

404/405 Error pages

Posted: Tue Nov 07, 2017 12:24 pm
by avaos
Hello,

How we can customize the 404/405 error pages? I can't find any templates of the custom page that show by default.

Re: 404/405 Error pages

Posted: Sat Dec 02, 2017 9:12 am
by avaos
Go to directory:

_include/lib

In the file:

lib.php

REPLACE:

Code: Select all

function pageNotFound()
{
    header('HTTP/1.0 404 Not Found');
    die('<center><h1>Not Found</h1><a href="' . Common::urlSite() . '">Home Page</a></center>');
}


BY:

Code: Select all

function pageNotFound()
{
    header('HTTP/1.0 404 Not Found');
    header('Location: index.php');
}