Merge pull request 'Toegevoegd: 404 & .htaccess' (#5) from test into main

Reviewed-on: #5
This commit is contained in:
Mathijs Lermer 2023-01-15 17:02:56 +01:00
commit 5f2513f235
8097 changed files with 182 additions and 0 deletions

82
.htaccess Executable file
View file

@ -0,0 +1,82 @@
ErrorDocument 404 /404.html
SetEnv TZ Europe/Amsterdam
Header set Strict-Transport-Security "max-age=31536000" env=HTTPS
Options All -Indexes
<IfModule mod_rewrite.c>
Options +FollowSymLinks -MultiViews
RewriteEngine On
RewriteBase /
#www to non
RewriteCond %{HTTP_HOST} ^www\.(([a-z0-9_]+\.)?domain\.com)$ [NC]
RewriteRule ^(.+?)/?$ http://%1/$1/ [R=301,L]
RewriteCond %{THE_REQUEST} \s/+(.+?)\.html/?[\s?] [NC]
RewriteRule ^ /%1/ [R=301,NE,L]
#index redirect
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.html\ HTTP/
RewriteRule ^index\.html$ http://%{HTTP_HOST}/ [R=301,L]
# add a trailing slash to non files
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*?[^/])$ %{REQUEST_URI}/ [L,R=301,NE]
# add html internally
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^.]+)/$ $1.html [L]
</IfModule>
<IfModule mod_expires.c>
ExpiresActive on
ExpiresDefault "access plus 1 month"
# CSS
ExpiresByType text/css "access plus 1 year"
# Data interchange
ExpiresByType application/json "access plus 0 seconds"
ExpiresByType application/xml "access plus 0 seconds"
ExpiresByType text/xml "access plus 0 seconds"
# Favicon
ExpiresByType image/x-icon "access plus 1 week"
# HTML components
ExpiresByType text/x-component "access plus 1 month"
# HTML
ExpiresByType text/html "access plus 0 seconds"
# JavaScript
ExpiresByType application/javascript "access plus 1 year"
# Manifest files
ExpiresByType application/x-web-app-manifest+json "access plus 0 seconds"
ExpiresByType text/cache-manifest "access plus 0 seconds"
# Media
ExpiresByType audio/ogg "access plus 1 month"
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType video/mp4 "access plus 1 month"
ExpiresByType video/ogg "access plus 1 month"
ExpiresByType video/webm "access plus 1 month"
# Web feeds
ExpiresByType application/atom+xml "access plus 1 hour"
ExpiresByType application/rss+xml "access plus 1 hour"
# Web fonts
ExpiresByType application/font-woff2 "access plus 1 month"
ExpiresByType application/font-woff "access plus 1 month"
ExpiresByType application/vnd.ms-fontobject "access plus 1 month"
ExpiresByType application/x-font-ttf "access plus 1 month"
ExpiresByType font/opentype "access plus 1 month"
ExpiresByType image/svg+xml "access plus 1 month"
</IfModule>

100
404.html Executable file
View file

@ -0,0 +1,100 @@
<!DOCTYPE html>
<!--
.___ ___. ___ .___________. __ __ __ __ _______.
| \/ | / \ | || | | | | | | | / |
| \ / | / ^ \ `---| |----`| |__| | | | | | | (----`
| |\/| | / /_\ \ | | | __ | | | .--. | | \ \
| | | | / _____ \ | | | | | | | | | `--' | .----) |
|__| |__| /__/ \__\ |__| |__| |__| |__| \______/ |_______/
__ _______ .______ .___ ___. _______ .______
| | | ____|| _ \ | \/ | | ____|| _ \
| | | |__ | |_) | | \ / | | |__ | |_) |
| | | __| | / | |\/| | | __| | /
| `----.| |____ | |\ \----.| | | | | |____ | |\ \----.
|_______||_______|| _| `._____||__| |__| |_______|| _| `._____|
-->
<html lang="nl">
<head>
<title>LERMER</title>
<meta charset="UTF-8">
<!--- assets-->
<link rel="icon" href="assets/afb/favicon.png" type="image/png">
<link href="/assets/css/mrl.css" rel="stylesheet">
<link href="/assets/fontawesome/css/all.css" rel="stylesheet">
<!--- site-->
<meta name="viewport" content="width=device-width, initial-scale=1" >
</head>
<body>
<div id="page-container">
<div id="content-wrap">
<section id="sectie_kop">
<div class="container">
<header>
<logo>Lermer.nl</logo>
<nav id="main_menu_01">
<ul>
<li> <a href="/index.html">Welkom</a></Li>
<li> <a href="/assets/downloads/CURRICULUM VITAE Mathijs Lermer zonder contact gegevens.pdf">Curriculum vitae</a></Li>
<li> <a href="https://uptime.lermer.nl/status/0">Uptime</a></Li>
</ul>
</nav>
<a href='#' id="menuknopje" onclick="hamburgermenuknopje()" style="display: none;">
<i class="fas fa-bars"></i></a>
</header>
</div>
</section>
<section id="sectie_pagina">
<div class="container">
<div id="tekst-midden">
<h1>404</h1>
<p>This is not the page you are looking for.<br><br><br>
<picture>
<img src="/assets/afb/notlookingfor.gif" alt="Don't panic">
</picture>
<br><br>
<div id="knop">
<a href="/index.html" class="knop knop_contact">MOVE ALONG</a><br>
</div>
</div>
</div>
</section>
</div>
<section id="sectie_footer">
<div class="container">
<footer>
<div class="footer-links">
<ul>
<li><a href="https://lermer.nl">&copy;LERMER.NL</a></Li>
<li><a href="https://git.lermer.nl/Mathijs/lermer.nl">GIT</a></Li>
</ul>
</div>
</footer>
</div>
</section>
</div>
</body>
<script>
function hamburgermenuknopje() {
var x = document.getElementById('main_menu_01');
if (x.style.display === "block") {
x.style.display = "none";
} else {
x.style.display = "block";
}
}
</script>
</html>

0
assets/afb/don-t-panic-klein.webp Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

0
assets/afb/don-t-panic.webp Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 42 KiB

After

Width:  |  Height:  |  Size: 42 KiB

0
assets/afb/favicon.png Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 26 KiB

0
assets/afb/logo.png Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

0
assets/afb/logo_L.png Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
assets/afb/notlookingfor.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 967 KiB

0
assets/fontawesome/.github/ISSUE_TEMPLATE/000_icon_request.yml vendored Normal file → Executable file
View file

0
assets/fontawesome/.github/ISSUE_TEMPLATE/001_brand_request.yml vendored Normal file → Executable file
View file

0
assets/fontawesome/.github/ISSUE_TEMPLATE/100_web_bug_report.yml vendored Normal file → Executable file
View file

0
assets/fontawesome/.github/ISSUE_TEMPLATE/101_other_bug_report.yml vendored Normal file → Executable file
View file

0
assets/fontawesome/.github/ISSUE_TEMPLATE/200_feature_request.yml vendored Normal file → Executable file
View file

0
assets/fontawesome/.github/ISSUE_TEMPLATE/config.yml vendored Normal file → Executable file
View file

0
assets/fontawesome/.github/PULL_REQUEST_TEMPLATE.md vendored Normal file → Executable file
View file

0
assets/fontawesome/LICENSE.txt Normal file → Executable file
View file

0
assets/fontawesome/css/all.css vendored Normal file → Executable file
View file

0
assets/fontawesome/css/all.min.css vendored Normal file → Executable file
View file

0
assets/fontawesome/css/brands.css vendored Normal file → Executable file
View file

0
assets/fontawesome/css/brands.min.css vendored Normal file → Executable file
View file

0
assets/fontawesome/css/fontawesome.css vendored Normal file → Executable file
View file

0
assets/fontawesome/css/fontawesome.min.css vendored Normal file → Executable file
View file

0
assets/fontawesome/css/regular.css vendored Normal file → Executable file
View file

0
assets/fontawesome/css/regular.min.css vendored Normal file → Executable file
View file

0
assets/fontawesome/css/solid.css vendored Normal file → Executable file
View file

0
assets/fontawesome/css/solid.min.css vendored Normal file → Executable file
View file

0
assets/fontawesome/css/svg-with-js.css vendored Normal file → Executable file
View file

0
assets/fontawesome/css/svg-with-js.min.css vendored Normal file → Executable file
View file

0
assets/fontawesome/css/v4-font-face.css vendored Normal file → Executable file
View file

0
assets/fontawesome/css/v4-font-face.min.css vendored Normal file → Executable file
View file

0
assets/fontawesome/css/v4-shims.css vendored Normal file → Executable file
View file

0
assets/fontawesome/css/v4-shims.min.css vendored Normal file → Executable file
View file

0
assets/fontawesome/css/v5-font-face.css vendored Normal file → Executable file
View file

0
assets/fontawesome/css/v5-font-face.min.css vendored Normal file → Executable file
View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

Some files were not shown because too many files have changed in this diff Show more