-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path404.php
33 lines (19 loc) · 897 Bytes
/
404.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php get_header(); ?>
<article>
<h1 class="entry-title">Page not found<h1>
<p>You
<?php
$website = get_bloginfo('url'); #gets your blog's url from wordpress
$websitename = get_bloginfo('name'); #sets the blog's name, according to wordpress
if (!isset($_SERVER['HTTP_REFERER'])) {
echo 'tried going to ';
$casemessage = 'Yet, all is not lost! Visit our <a href="yip.se">homepage</a> to start over.';
} elseif (isset($_SERVER['HTTP_REFERER'])) {
echo 'clicked a link to';
$casemessage = 'We are are woorking to get this fixed as soon as possible. In the mean time visit our <a href="yip.se">homepage</a> to start over. ';
}
echo ' <strong>'.$website.$_SERVER['REQUEST_URI'].'</strong>'; ?>
but the page was not found.</p> <p> <?php echo $casemessage; ?>
</p>
</article>
<?php get_footer(); ?>