switch deploy method

This commit is contained in:
2023-07-05 23:39:36 +02:00
parent 093dfa9033
commit 0e19b7b0d3
8 changed files with 44 additions and 20 deletions

16
static/.htaccess Normal file
View File

@@ -0,0 +1,16 @@
RewriteEngine On
# force https
RewriteCond %{HTTPS} !=on
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
# SPA mode
RewriteBase /
RewriteRule ^200\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /200.html [L]
# remove trailing slash
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R=301]