How to set the custom 404 page in joomla?
or
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('http://www.domain.com/404.shtml');
}
else
{
==========================
And then add the following code at the end of error.php file
=============
<?php
}
?>
=============
Done
Are you ready for another cPanel price adjustment? As we have approached January 2025, cPanel has rolled out significant changes…
In this growing digital world, having a website is not enough—it’s a crucial and much-needed option. But here's the challenge…
In today's digital age, the line between hobby photography and professional photography has become increasingly blurred. With the rise of…
Are you taking your first steps into the world of web hosting? You're not alone. Every day, countless individuals and…
Due to growing digitalization, Email Communication has become the backbone of professional interactions. Yet, surprisingly, many professionals struggle to craft…