tibi-svelte-starter/public/.htaccess

18 lines
499 B
ApacheConf
Raw Normal View History

2021-03-22 15:59:05 +01:00
AddType application/javascript .mjs
#DirectoryIndex index.html spa.html
DirectoryIndex noindex
<ifModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
2022-03-14 17:18:18 +01:00
RewriteRule ^/?api/(.*)$ http://tibi-server:8080/api/v1/_/__NAMESPACE__/$1 [P,QSA,L]
2021-03-22 15:59:05 +01:00
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
2022-03-14 17:18:18 +01:00
2022-02-26 11:09:53 +01:00
RewriteRule ^/?(.*)$ http://tibi-server:8080/api/v1/_/__NAMESPACE__/ssr?token=__SSR_TOKEN__&url=/$1 [P,QSA,L]
2021-03-22 15:59:05 +01:00
#RewriteRule (.*) /spa.html [QSA,L]
</ifModule>