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
Picture this: Your WordPress site is like that one friend who's always fashionably late to everything. You know, the one…
In a world where artificial intelligence is rapidly reshaping our digital landscape, AI detectors have emerged as both guardians and…
In today's digital age, e-learning has become more than just a convenience – it's a necessity. As virtual classrooms and…
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…