add htaccess
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Andre Henriques 2023-07-11 21:14:00 +01:00
parent ec40158103
commit 6225cfe8f3

14
static/.htaccess Normal file
View File

@ -0,0 +1,14 @@
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^200\.html$ - [L]
RewriteRule ^(.+)/+$ /$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule (.+) $1.html [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . /200.html [L]
</IfModule>