1. Express
  2. Thursday, 13 June 2013
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
Responses (8)
There is no way from article manager. You need to edit the error.php file.
  1. more than a month ago
  2. Express
  3. # 1
Hi,

I find a way, paid :( component yireo "dynamic404" and you can make custom 404 page on joomla 3.
  1. more than a month ago
  2. Express
  3. # 2
I've need to display error 404 into the template. How can I do?
  1. more than a month ago
  2. Express
  3. # 3
Hi,

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

I'm using joomla 3.3.x and Awetive template
  1. more than a month ago
  2. Express
  3. # 4
where is the exact location of the file to edit?
  1. more than a month ago
  2. Express
  3. # 5
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!
  1. more than a month ago
  2. Express
  3. # 6
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
  1. more than a month ago
  2. Express
  3. # 7
  1. more than a month ago
  2. Express
  3. # 8


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


This forum is archived

This forum has been archived. Please use JoomShaper official support system.