This quick tip will show you how to easily make an custom 404 error page in Joomla 1.5. The page will be an editable article.
Follow these steps
- Create a new article called 404 and add some custom content.
- Create a new menu item and name it and the alias 404 in the Menu Item Manager.
- Find the following file within your templates dir: system/error.php
- Delete everything under the first php block and add the following code…
<?php
if (($this->error->code) == '404') {
header('Location: http://www.yourwebsite.com/404');
exit;
}
?>
Note: If using this method, do not unpublish categories.
