summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.htaccess1
-rw-r--r--error_404.php9
2 files changed, 10 insertions, 0 deletions
diff --git a/.htaccess b/.htaccess
new file mode 100644
index 0000000..664cf81
--- /dev/null
+++ b/.htaccess
@@ -0,0 +1 @@
+ErrorDocument 404 /error_404.php \ No newline at end of file
diff --git a/error_404.php b/error_404.php
new file mode 100644
index 0000000..2893641
--- /dev/null
+++ b/error_404.php
@@ -0,0 +1,9 @@
+<?php
+$title = "Page not found [404]";
+require($_SERVER["DOCUMENT_ROOT"] . "/head.php");
+require($_SERVER["DOCUMENT_ROOT"] . "/header.php");
+?>
+<p>
+ The page you tried to access doesn't exist. I probably just haven't made it yet.
+</p>
+<?php require($_SERVER["DOCUMENT_ROOT"] . "/footer.php"); ?> \ No newline at end of file