mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2025-12-12 22:06:18 +00:00
switch deploy method
This commit is contained in:
16
static/.htaccess
Normal file
16
static/.htaccess
Normal 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]
|
||||
Reference in New Issue
Block a user