Hello,
I’d like to display a custom 404 page. I’ve created an article and a menu for that. Now I’d like to modify the error.php of Uber to get a custom 404 page
I added
if (($this->error->getCode()) == ‘404’) {
header(‘Location: /index.php?option=com_content&view=article&id=229’);
exit;
}
below
defined(‘_JEXEC’) or die;
if (!isset($this->error)) {
$this->error = JError::raiseWarning(404, JText::_(‘JERROR_ALERTNOAUTHOR’));
$this->debug = false;
}
but this doesn’t work
I thought I could uncomment the above lines but same issue.
? How can I get index.php?option=com_content&view=article&id=229 as a custom 404 ?
Thanks