allerta-vvf/backend/.htaccess

15 lines
424 B
ApacheConf
Raw Permalink Normal View History

2021-12-27 13:01:02 +01:00
RewriteEngine on
2021-12-24 17:54:17 +01:00
2021-12-27 14:19:10 +01:00
#https://stackoverflow.com/a/26791450
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]
#Thanks u/IZEN_R!
2021-12-27 13:01:02 +01:00
RewriteCond %{REQUEST_URI} !^(.*)dist-frontend/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ dist-frontend/$1
RewriteRule ^(.*)api/(.*) router.php [L]
DirectoryIndex dist-frontend/index.html
ErrorDocument 404 router.php