thing
This commit is contained in:
parent
37b1a1fade
commit
58bbf07690
1 changed files with 5 additions and 5 deletions
10
nginx.conf
10
nginx.conf
|
|
@ -78,18 +78,18 @@ http {
|
|||
}
|
||||
|
||||
# Redirect old /index.html requests to new file
|
||||
location = /index.html {
|
||||
return 301 /indexV2.html;
|
||||
}
|
||||
# location = /index.html {
|
||||
# return 301 /indexV2.html;
|
||||
# }
|
||||
|
||||
# Serve indexV2.html directly without redirect loop
|
||||
location = /indexV2.html {
|
||||
location = /index.html {
|
||||
root /usr/share/nginx/html;
|
||||
}
|
||||
|
||||
# Fallback for SPA routing — all unmatched routes go to indexV2.html
|
||||
location / {
|
||||
try_files $uri /indexV2.html;
|
||||
try_files $uri /index.html;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue