test
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • yourch Friend
    #203603

    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

    Saguaros Moderator
    #558946

    You can PM me admin and ftp credentials of your site, I will take a look.

Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 2 replies, has 2 voices, and was last updated by  Saguaros 10 years, 1 month ago.

We moved to new unified forum. Please post all new support queries in our New Forum