avaos
Posts: 2
Joined: Wed Sep 06, 2017 12:33 pm

404/405 Error pages

Tue Nov 07, 2017 12:24 pm

Hello,

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

avaos
Posts: 2
Joined: Wed Sep 06, 2017 12:33 pm

Re: 404/405 Error pages

Sat Dec 02, 2017 9:12 am

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');
}

Return to “Chameleon General Discussion”

Who is online

Users browsing this forum: Majestic-12 [Bot] and 1 guest