Something Different In Linux

Home » CMS » Joomla » Custom 404 page in joomla

Custom 404 page in joomla

Posted by Rishikesh Vispute Categories: Joomla

How to set the custom 404 page in joomla?
Change default “Joomla 404 component not found” page

Ans :

Create 404.shtml file under the document root then open the error.php file

vi   /home/username/public_html/templates/system/error.php

then add the following code below the line  “defined( ‘_JEXEC’ ) or die( ‘Restricted access’ );”


if (($this->error->code) == '404') {
echo file_get_contents('');


And then add the following code at the end of error.php file





4 Responses so far.

  1. Deepika says:

    One of the best blog I have ever seen with all useful contents..

  2. Nice site, nice and easy on the eyes and great content too.

  3. When i visit a blog, chances are that i get disappointed.On the other hand,I have to say that you have done a good job here.

Popular Posts

remove index.php fro

How to remove index.php from url in magento Ans : If you ...

PHP-Java bridge on p

  What is php-java bridge? The php-java bridge is the php ...

Set expiration for y

If you want to set the expiration to your site ...

Warning: Parameter 1

Error: Warning: Parameter 1 to modMainMenuHelper::buildXML() expected to be a ...

domain pointing to e

If you domain uses external MX record and it is ...