Support Forums

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

Your Time: Our Time:

How to customize 404 page

Featured Lock Resolved
Hi,

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.

Thank's

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.

pierre

More than a month ago #Permalink
Hi,

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

Leila

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
Hi,

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

I'm using joomla 3.3.x and Awetive template

szymas

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:


<?php
/**
* @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
exit;
}

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!

Bendict

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

Bendict

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)

Sifat

Sifat

Total Accepted Answers: 146
Paul Frankowski

Paul Frankowski

Total Accepted Answers: 87
Toufiq

Toufiq

Total Accepted Answers: 25
Pavel

Pavel

Total Accepted Answers: 4
Al Mamun

Al Mamun

Total Accepted Answers: 3

113

Templates

289440

Community Users

Newsletter

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. JoomShaper.com is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

Connect Us