updated error pages

This commit is contained in:
Sophia Atkinson 2022-12-19 16:06:50 -08:00
parent f8dd8d1020
commit 72504cef0d
7 changed files with 59 additions and 37 deletions

1
.gitignore vendored
View File

@ -1,5 +1,4 @@
.well-known
.htaccess
.user.ini
sitemap.xml
photostandard.txt

8
.htaccess Normal file
View File

@ -0,0 +1,8 @@
ErrorDocument 404 /assets/errors/404.php
ErrorDocument 403 /assets/errors/403.php
RewriteEngine On
Options +FollowSymLinks
RewriteCond %{REQUEST_METHOD} !^POST$
RewriteRule ^favicon.ico /img/site/favicon-32.webp
RewriteRule ^assets/includes/header.php$ - [NC,R=403,L]
RewriteRule ^assets/includes/footer.php$ - [NC,R=403,L]

View File

@ -1,34 +0,0 @@
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>Error 404</title>
<style>
body{
background-image: url('/img/fulls/IMG_4255.webp');
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
background-repeat:no-repeat;
background-position: center center;
font-size:14px;
}
h3{
font-size:60px;
color:#fff;
text-align:center;
padding-top:30px;
font-weight:normal;
}
</style>
</head>
<body>
<h3>Error 404, the file you requested does not exist!</h3>
</body>
</html>

15
assets/css/error.css Normal file
View File

@ -0,0 +1,15 @@
body{
background-image: url('/img/fulls/IMG_4255.webp');
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
background-repeat:no-repeat;
background-position: center center;
}
h1,h2,h3,h4,h4,h5,h6{
text-align:center;
color: #fff;
font-size: 2em;
line-height: 1.5em;
font-size: 35px;
}

View File

@ -2,8 +2,8 @@
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="1024"
height="1024"
width="96"
height="96"
viewBox="0 0 270.93332 270.93334"
version="1.1"
id="svg5"

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

17
assets/errors/403.php Normal file
View File

@ -0,0 +1,17 @@
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<link rel="stylesheet" href="/assets/css/error.css" />
<title>Error 403</title>
</head>
<body>
<h1>Error 403</h1>
<h2>You don't have permission to access this resource.</h2>
</body>
</html>

17
assets/errors/404.php Normal file
View File

@ -0,0 +1,17 @@
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<link rel="stylesheet" href="/assets/css/error.css" />
<title>Error 404</title>
</head>
<body>
<h1>Error 404</h1>
<h2>Sorry, this page does not exist.</h2>
</body>
</html>