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 {
|
||||
# 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 / {
|
||||
|
||||
Reference in New Issue
Block a user