M/s Business Configuration Online
61, Sultanpur Dabas, Delhi 110039, India.
Email: info@internetmarketing.technology
Ph.: (+91)-99539-30359.
(Regd. by Govt. of India)

Costomized 404 error page for Joomla (solved)


SEO

Costomized 404 error page for Joomla (solved)

How to make a customized 404 error page in joomla so that the visitors on your website may browse the site more to end their search. Here is the answer:-
edit the following code in error.php file of your templates folder as given below:-

defined( ‘_JEXEC’ ) or die( ‘Restricted access’ );
if (($this->error->code) == ‘404’) {
header(‘Location: http://www.internetmarketing.technology/page-not-found’);
exit;
}
?>

Then do not forget to edit the robots.txt file in the root folder of your domain to disallow: /page-not-found

Change the URL above for your website or one of its customized error page. That’s it. you did it.

Have any Question or Comment?

Leave a Reply