fix(nginx): replace rewrite rules with try_files for /flintstones and /orcid2words to enhance SPA functionality and prevent 404 errors

This commit is contained in:
Alexis
2026-05-13 14:16:43 +02:00
parent 4a6eeeae68
commit 1b53084062
+2 -3
View File
@@ -17,8 +17,7 @@ server {
}
location = /flintstones {
# Sin 301: Apache puede reescribir `Location` y exponer puerto interno (p. ej. :5173) y bucles.
rewrite ^ /flintstones/ last;
try_files /index.html =404;
}
location ^~ /orcid2words/ {
@@ -27,7 +26,7 @@ server {
}
location = /orcid2words {
rewrite ^ /orcid2words/ last;
try_files /index.html =404;
}
location / {