22 lines
664 B
ApacheConf
22 lines
664 B
ApacheConf
<IfModule mod_mime.c>
|
|
# Força o servidor a enviar arquivos TSX/TS como texto javascript
|
|
# Isso corrige o erro "MIME type of application/octet-stream"
|
|
AddType text/javascript .js
|
|
AddType text/javascript .jsx
|
|
AddType text/javascript .ts
|
|
AddType text/javascript .tsx
|
|
AddType text/css .css
|
|
</IfModule>
|
|
|
|
<IfModule mod_rewrite.c>
|
|
RewriteEngine On
|
|
RewriteBase /odonto/
|
|
|
|
# Se o arquivo ou diretório existir, serve ele normalmente
|
|
RewriteCond %{REQUEST_FILENAME} -f [OR]
|
|
RewriteCond %{REQUEST_FILENAME} -d
|
|
RewriteRule ^ - [L]
|
|
|
|
# Caso contrário, redireciona tudo para index.html (Fallback para SPA)
|
|
RewriteRule ^ index.html [L]
|
|
</IfModule> |