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:
+2
-3
@@ -17,8 +17,7 @@ server {
|
|||||||
}
|
}
|
||||||
|
|
||||||
location = /flintstones {
|
location = /flintstones {
|
||||||
# Sin 301: Apache puede reescribir `Location` y exponer puerto interno (p. ej. :5173) y bucles.
|
try_files /index.html =404;
|
||||||
rewrite ^ /flintstones/ last;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
location ^~ /orcid2words/ {
|
location ^~ /orcid2words/ {
|
||||||
@@ -27,7 +26,7 @@ server {
|
|||||||
}
|
}
|
||||||
|
|
||||||
location = /orcid2words {
|
location = /orcid2words {
|
||||||
rewrite ^ /orcid2words/ last;
|
try_files /index.html =404;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
|
|||||||
Reference in New Issue
Block a user