CMS and Displaying custom 404 page [closed]
This is just a random question. I've heard of a few CMS making it easily manageable to where the root site can display a 404 page if the admin tells it to display it instead of the website just in case the user wants to put the site down for maintenance. I was just trying to seeif I could understand how this sort of task is accomplished.
if ($down_flag === true) {
header('HTTP/1.0 404 Not Found');
include('404.php');
exit;
}
精彩评论