Handling 404 error Joomla 2.5
问题 I try to redirect all my 404 error on my web site following those docs : http://docs.joomla.org/Creating_a_Custom_404_Error_Page So I edited my error.php : <?php defined('_JEXEC') or die; if (($this->error->getCode()) == '404') { header('Location: http://www.mywebsite.com'); exit; } if { (!isset($this->error)) { $this->error = JError::raiseWarning(404, JText::_('JERROR_ALERTNOAUTHOR')); $this->debug = false; } //get language and direction $doc = JFactory::getDocument(); $this->language = $doc