Merge pull request 'Toegevoegd: 404 & .htaccess' (#5) from test into main
Reviewed-on: #5
82
.htaccess
Executable 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
|
@ -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">©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
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
0
assets/afb/don-t-panic.webp
Normal file → Executable file
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 42 KiB |
0
assets/afb/favicon.png
Normal file → Executable file
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
0
assets/afb/logo.png
Normal file → Executable file
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
0
assets/afb/logo_L.png
Normal file → Executable file
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
BIN
assets/afb/notlookingfor.gif
Executable file
After Width: | Height: | Size: 967 KiB |