Hi,
I was wondering if you could help, I'd like to redirect the templates Error 404 page to a custom made article. How can I do that?
Thanks
Ivan
<?php
/**
*
* Error view
*
* @version 1.0.0
* @package Gavern Framework
* @copyright Copyright (C) 2010 - 2011 GavickPro. All rights reserved.
*
*/
// No direct access.
defined('_JEXEC') or die;
if (($this->error->getCode()) == '404') {
header('Location: https://www.therockandwall.com/error-4-0-4');
exit;
}
jimport('joomla.factory');
// get the URI instance