Request Information

Smart Fog Site Code

Smart Fog Site Code Reference:

1) Copy the file templates/system/error.php to your default template location templates/<template-name>/error.php using either your hosts file manager or

2) Open error.php for edit

Change this original code near the top of the file

// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
?>

To this (add the stuff in red). Don't forget to change <your-url> to your web site name!

// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
if (($this->error->code) == '404') {<br /> echo file_get_contents('http://www.<strong><your-url></strong>.com');<br />} else {</span><br />?></pre> <p>Finally at the very bottom of the file add the following</p> <pre><span style="color: #ff0000;"><?php } ?></span></pre>'