Error 404 page redirection

Professional Joomla social template with metro design and JomSocial extension support.
Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Wed Sep 23, 2015 9:53 pm
Reply with quote
Report this post
Hi,

I was wondering if you could help, I'd like to redirect the templates Error 404 page to a custom made article. How can I do that?

Thanks

Ivan
User avatar
Junior Boarder

GK User
Wed Sep 23, 2015 10:34 pm
Reply with quote
Report this post
Hi,
you have to use addcional extension which allows this.
Check on JED , I saw at least 3 solutions there, not all were commercial.
User avatar
Platinum Boarder

GK User
Fri Sep 25, 2015 4:35 pm
Reply with quote
Report this post
Hi Oscar,

thanks for your reply.

I've found this article:
https://docs.joomla.org/Creating_a_Cust ... Error_Page

in my (m)social template folder error.php I have done this:
Code: Select all
<?php

/**
 *
 * Error view
 *
 * @version             1.0.0
 * @package             Gavern Framework
 * @copyright         Copyright (C) 2010 - 2011 GavickPro. All rights reserved.
 *             
 */

// No direct access.
defined('_JEXEC') or die;

if (($this->error->getCode()) == '404') {
header('Location: https://www.therockandwall.com/error-4-0-4');
exit;
}

jimport('joomla.factory');
// get the URI instance
User avatar
Junior Boarder

GK User
Fri Sep 25, 2015 8:00 pm
Reply with quote
Report this post
User avatar
Platinum Boarder


cron