Custom 404 page in 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





Vishwajit Kale

Vishwajit Kale blazed onto the digital marketing scene back in 2015 and is the digital marketing strategist of Hostripples, a company that aims to provide affordable web hosting solutions. Vishwajit is experienced in digital and content marketing along with SEO. He's fond of writing technology blogs, traveling and reading.