defined('_JEXEC') or die; if (!isset($this->error)) { $this->error = JError::raiseWarning(404, JText::_('JERROR_ALERTNOAUTHOR')); $this->debug = false; } // Get language and direction $doc = JFactory::getDocument(); $app = JFactory::getApplication(); $this->language = $doc->language; $this->direction = $doc->direction; if($this->error->getCode()=='404') { header("HTTP/1.0 404 Not Found"); header('Location: index.php?option=com_content&view=article&id=1001'); }