Added 403 page

This commit is contained in:
CommanderRedYT
2020-11-10 17:09:17 +01:00
parent 232db6b579
commit 9866f7e3b9
2 changed files with 29 additions and 1 deletions

View File

@@ -15,3 +15,4 @@ RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php [NC,L] RewriteRule ^(.*)$ $1.php [NC,L]
ErrorDocument 404 /404 ErrorDocument 404 /404
ErrorDocument 403 /403

27
403.html Normal file
View File

@@ -0,0 +1,27 @@
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]> <html class="no-js"> <!--<![endif]-->
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Error 404 - Not found</title>
<meta name="description" content="404 Error Page" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="./css/error.css" />
<link
href="https://fonts.googleapis.com/css2?family=Inconsolata:wght@500&display=swap"
rel="stylesheet"
/>
</head>
<body>
<a href="./">
<div class="container">
<p style="padding-top: calc(40%)">Error 403 - You're not allowed to see this!</p>
<p style="padding-top: calc(50%)">Click here to go to main page</p>
</div>
</a>
</body>
</html>