Location: PHPKode > scripts > Create Your Own Directory > cms/404notfound.php
<?php
$ref = $_SERVER['HTTP_REFERER'];
$ser = $_SERVER['HTTP_HOST'];
$uri = $_SERVER['REQUEST_URI'];


$message1 = "Fix the following broken link<br><br>URL: <font color=red>$uri</font><br> Referer: <font color=red>$ref</font>";

$subject1 = "Broken link";

/* To send HTML mail, you can set the Content-type header. */
$headers1 = "MIME-Version: 1.0";
$headers1 .= "Content-type: text/html; charset=iso-8859-1";

$mailid = "hide@address.com";
if(isset($ref)) {
@mail($mailid, $subject1, $message1, $headers1);
} 
$index=true;
include "header.php";
?>
<script language=javascript>
document.title="Freephpcms- Link not found";
</script>
<div style='padding-left:20px;padding-right:10px;'><h3><br>Page not found</h3><br>
The link you have searched for is <font color=red>not found</font>. <br>
It might be because of the following reasons.<br>
<br>
a)The Page might have been moved during a restructure.<br>
b)You might have entered a wrong url.<br>
<br>

<font color=green>Please scroll thro the website or send us a mail stating the problem</font>.<br>
<br>
Thanks and Regards,<br>
Freephpcms.com Team<br>
<br><br></div>
<?php
include "footer.php";
?>
Return current item: Create Your Own Directory