there is a file
joomla3…pluginssystemt3base
error.php
Should i edit this file to create a custom page 404?
I edited file like this>
[PHP]defined(‘_JEXEC’) or die;
if (($this->error->getCode()) == ‘404’) {
header(‘Location: /index.php?option=com_content&view=article&id=218’);
// hidden or not hidden menu doesnt matter
exit;
}
if (!isset($this->error)) {
$this->error = JError::raiseWarning(404, JText::_(‘JERROR_ALERTNOAUTHOR’));
$this->debug = false;
} [/PHP]
But it doesnt work, what i do wrong?
ps.
this doesnt helps too
[PHP]if (($this->error->code) == ‘404’) {
header(‘Location: /index.php?option=com_content&view=article&id=218’);
exit;
}[/PHP]