Custom 404 Error Pages At Joomla

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 thetemplates/system/error.phpfile into yourtemplates/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 thetemplates/system/css/error.cssfile into yourtemplates/cssdirectory.

Next, update the your templates/error.php file to reference the new location of the stylesheet by changing this line, accordingly:

“stylesheet”href=”/baseurl; ?>/templates/system/css/error.css”type=”text/css”/>

Then, simply change the error.css, as desired, for your styling requirements.

Customizing Error Messages
To create the custom error message, dependent upon the specific error code, you’ll want to add the following code somewhere in the error.php document to create the custom message.

Related Post

Joomla! • View topic - Custom 404 inside the content area
explained create 404 page normal Joomla error.php created custom Joomla file treat error page?

How to Create a Custom Error Page on Joomla | eHow.com
Joomla powerful content management system designed easy management small large websites. A 404 error occurs visitor accesses part

Qlue Custom 404 - Joomla! Extensions Directory
The Qlue Custom 404 component detects website page error redirects user custom 404 error page. The component redirect HTTP

Joomla! • View topic - Custom 404 Error Page for Joomla 1.6
Search Engine Optimization (Joomla! SEO) Joomla! 2.5 / Joomla! 1.7 "This guide --> Creating Custom 404 Error Page work Joomla 1.5

Joomla: How do I add a custom 404 page? - Yahoo! Answers
If hosting account supports custom error pages set You custom 404 page Joomla. See http://docs.joomla.org/Custom_…

No Comments

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment