Reading list Switch to dark mode

    Redirect 404 page in Joomla

    Redirect 404 page in Joomla to cutom pages : 404 redirection is very common problem with joomla . 404 errors are also very bad for SEO (search engine optimization). The very basic solution to fix this out is

    1) Copy the file templates/system/error.php to your default template location templates/<template-name>/error.php using either your hosts file manager or with a FTP client such as FileZilla.

    2) Open error.php for edit

    Change this original code near the top of the file

    // no direct access
    defined( '_JEXEC' ) or die( 'Restricted access' );
    ?>

    To this (add the stuff in red). Don’t forget to change <your-url> to your web site name!

    Start your headless eCommerce
    now.
    Read More
    // no direct access
    defined( '_JEXEC' ) or die( 'Restricted access' );
    if (($this->error->code) == '404') {
     echo file_get_contents('http://www..com');
    } else {
    ?>

    Finally at the very bottom of the file add the following

    cheers

    . . .
    Add a comment

    Leave a Comment

    Your email address will not be published. Required fields are marked*


    Be the first to comment.

    Back to Top
    We endeavoured to re-platform our existing site and Webkul has been playing an integral part as far as transforming our basic Magneto instance into an online marketplace.
    Alex Maranduik
    Director, Marketing
    www.labx.com
    Talk to Sales

    Global

    Live Chat

    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home