-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path404.php
More file actions
31 lines (25 loc) · 1.12 KB
/
404.php
File metadata and controls
31 lines (25 loc) · 1.12 KB
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
31
<?php
require_once 'includes/functions.php';
$config = require 'config.php';
$base = rtrim($config['base_path'] ?? '/', '/');
$active = '';
$headTitle = 'Page Not Found | ' . $config['blog_name'];
$headDesc = "The page you're looking for could not be found.";
include 'includes/header.php';
?>
<main class="container my-5 text-center">
<div class="row">
<div class="col-md-8 mx-auto">
<h1 class="display-1 fw-bold text-danger">404</h1>
<h2 class="mb-3">Page Not Found</h2>
<p class="lead mb-4">Sorry, the page you're looking for doesn't exist or has been moved.</p>
<div class="d-flex gap-2 justify-content-center">
<a href="<?= $base ?>/" class="btn btn-primary">Back to Home</a>
<a href="javascript:history.back()" class="btn btn-outline-secondary">Go Back</a>
</div>
<hr class="my-5">
<p class="text-muted">Try browsing recent posts or use the navigation menu above.</p>
</div>
</div>
</main>
<?php include 'includes/footer.php'; ?>