Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • userid1988 Friend
    #192364

    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]

    userid1988 Friend
    #512640

    i SOLVED with workaround. but i want real solution.)

    FILE >
    .htaccess

    ADD>
    ErrorDocument 404 /The_URL_to_your_404_article_here

    Ninja Lead Moderator
    #512674

    That’s right, it is one of the way to fix

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

This topic contains 3 replies, has 2 voices, and was last updated by  Ninja Lead 11 years ago.

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