Support Forums

Support Online : Mon - Fri / 10am - 6pm (GMT +6)

Your Time: Our Time:

How to customize 404 page

Featured Lock Resolved

I don't find solution for customise 404 page, make my personnal 404 page from article manager.

Personal 404 page inside website with other menu, search box, it's better for visitor.


8 Answers

Kawshar Ahmed - Senior Staff

More than a month ago #Permalink
There is no way from article manager. You need to edit the error.php file.


More than a month ago #Permalink

I find a way, paid :( component yireo "dynamic404" and you can make custom 404 page on joomla 3.


More than a month ago #Permalink
I've need to display error 404 into the template. How can I do?

Matteo Quarantiello

More than a month ago #Permalink

i need to customize my 404 page too, how can I do?

I'm using joomla 3.3.x and Awetive template


More than a month ago #Permalink
where is the exact location of the file to edit?

Warren Diggles

More than a month ago #Permalink
You can create a custom 404 article but you have to change the code in your error.php file. Then make a menu item to your 404 page.

Replace the error.php code with this:

* @package Joomla.Site
* @subpackage Template.system
* @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt

defined('_JEXEC') or die;

if (($this->error->getCode()) == '404') {
header('Location: /404.html');
// hidden or not hidden menu doesnt matter

if (!isset($this->error)) {
$this->error = JError::raiseWarning(404, JText::_('JERROR_ALERTNOAUTHOR'));
$this->debug = false;

Just make sure the url of the article is /404.html

Try it out!


More than a month ago #Permalink
Hi I just tried doing as described in this tread and it doesn't work

Browser returns an error that it's being send into an infinity loop

Check it out here: Title


More than a month ago #Permalink

There are no replies made for this post yet.
Be one of the first to reply to this post!

Leaderboard (30 days)



Total Accepted Answers: 146
Paul Frankowski

Paul Frankowski

Total Accepted Answers: 87


Total Accepted Answers: 25


Total Accepted Answers: 4
Al Mamun

Al Mamun

Total Accepted Answers: 3




Community Users


Don’t miss any updates of our new templates and extensions and all the astonishing offers we bring for you.
We never spam

Joomla! ® name is used under a limited license from Open Source Matters in the United States and other countries. is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

Connect Us