<?php get_header(); ?>
<?php get_sidebar(); ?>

<div id="contentcontainer">

<div class="blogbefore"></div>
<div class="blog">
<h3>Error 404</h3>
<p class="headertext">You have reached a non-existant url. This address is either outdated or incorrectly linked.</p>
<p><?php

function selfURL() { $s = empty($_SERVER["HTTPS"]) ? '' : ($_SERVER["HTTPS"] == "on") ? "s" : ""; $protocol = strleft(strtolower($_SERVER["SERVER_PROTOCOL"]), "/").$s; $port = ($_SERVER["SERVER_PORT"] == "80") ? "" : (":".$_SERVER["SERVER_PORT"]); return $protocol."://".$_SERVER['SERVER_NAME'].$port.$_SERVER['REQUEST_URI']; } function strleft($s1, $s2) { return substr($s1, 0, strpos($s1, $s2)); }

print(selfURL());

?></p>

</div>
<div class="blogafter"></div>

</div>

<?php get_footer(); ?>