Joomla 404 Custom Error Page

How to create a Joomla 1.5 Custom 404 Error Page

Joomla! uses the templates/system/error.php file to handle several HTTP Status errors, including "403 Forbidden", "404 Not Found", and "500 Internal Server" Errors. You can style the error results, if desired.

It is important to understand that the error.php is an independent file from Joomla!. Plugins do not run on the file. You cannot include modules or use statements.

Overriding the System Error Results

To override the system error results, copy the templates/system/error.php file into your templates/ directory. If it finds one, Joomla! will use the error.php file from the current template, in place of the system file. You can format the page, as desired, to match your template.

Overriding the System Styling

If you want to change the styling, copy the templates/system/css/error.css file into your templates//css directory. Next, update the your templates//error.php file to reference the new location of the stylesheet by changing this line, accordingly: /templates/system/css/error.css" type="text/css" /> Then, simply change the error.css, as desired, for your styling requirements.

When a request is made for a page on your site, the server returns an HTTP status code in response to the request. Joomla! returns a '200 - the server successfully returned the page' for error pages. This is problematic for those working with Google Webmaster Services and trying to get a sitemap resolved.