It is currently Tue Aug 14, 2018 1:38 am Advanced search

404/405 Error pages

Use this forum to discuss Chameleon.

404/405 Error pages

Postby avaos » 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

Postby avaos » 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');
}
avaos
 
Posts: 2
Joined: Wed Sep 06, 2017 12:33 pm


Return to Chameleon General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron
Dating Software