]> git.bochard.net Git - mysite.git/commitdiff
added two more error files
authorbochard <mail@tenkyuu.dev>
Sun, 27 Apr 2025 12:42:50 +0000 (20:42 +0800)
committerbochard <mail@tenkyuu.dev>
Sun, 27 Apr 2025 12:42:50 +0000 (20:42 +0800)
.htaccess
error_docs/403.html [new file with mode: 0644]
error_docs/500.html [new file with mode: 0644]

index 1b5a40645d34ef52dd8199d15382054dbc6ce3e3..a9e3f3dcfd2b9a5415fe58299c3853069955dd14 100644 (file)
--- a/.htaccess
+++ b/.htaccess
@@ -5,4 +5,6 @@ RewriteCond %{HTTP_HOST} ^www\.tenkyuu\.dev [NC]
 RewriteRule ^(.*)$ http://tenkyuu.dev/$1 [R=301,L]
 
 #error pages
-ErrorDocument 404 /error_docs/404.html
\ No newline at end of file
+ErrorDocument 404 /error_docs/404.html
+ErrorDocument 403 /error_docs/403.html
+ErrorDocument 500 /error_docs/500.html
\ No newline at end of file
diff --git a/error_docs/403.html b/error_docs/403.html
new file mode 100644 (file)
index 0000000..2dc6cfc
--- /dev/null
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+  <meta charset="utf-8">
+  <meta http-equiv="x-ua-compatible" content="ie=edge">
+  <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
+  <meta name="description" content="you are not authorized to access this page.">
+  <title>page doesn't exist!!</title>
+</head>
+<body background="/images/backgrounds/backgroundclouds.gif">
+  <h1>Go back, you're not allowed here!</h1>
+  <p>Why are you trying to access this page, huh??</p>
+  <a href="/">
+    <img src="/images/gifs/backhomepage.gif" width="300" alt="back to home">
+  </a>
+</body>
+</html>
\ No newline at end of file
diff --git a/error_docs/500.html b/error_docs/500.html
new file mode 100644 (file)
index 0000000..5b64c8d
--- /dev/null
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+  <meta charset="utf-8">
+  <meta http-equiv="x-ua-compatible" content="ie=edge">
+  <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
+  <meta name="description" content="an error occured on my server.">
+  <title>page doesn't exist!!</title>
+</head>
+<body background="/images/backgrounds/backgroundclouds.gif">
+  <h1>what the... what happened?!</h1>
+  <p>I don't know why my server won't work, maybe a hacker tried to attack it! oh no. Can you try refreshing the page?</p>
+  <a href="/">
+    <img src="/images/gifs/backhomepage.gif" width="300" alt="back to home">
+  </a>
+</body>
+</html>
\ No newline at end of file