Joomla: How to Make a Custom 404 Error Page

Joomla: How to Make a Custom 404 Error Page

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

  1. Create a new article called 404 and add some custom content.
  2. Create a new menu item and name it and the alias 404 in the Menu Item Manager.
  3. Find the following file within your templates dir: system/error.php
  4. 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.

Enjoyed this post?

Subscribe to our RSS Feed, Follow on Twitter, Grab our monthly Newsletter.

About Jamie Brightmore

Jamie is a professional designer who runs 4mula design a creative design studio focused on web design & development, located in Cheltenham, Gloucestershire UK. Jamie is also a Serato turntablist who can be found scratching holes in vinyl in his spare time! Follow him on Twitter.

TOP