You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
location / {
# First attempt to serve request as file, then
# as directory, then fall back to redirecting to index.html
try_files $uri $uri/ @root;
}
# If nginx can't find a file, fallback to the homepage.
location @root {
rewrite .* / redirect;
}
The fallback is not actually redirecting to index.html. This is actually sending a 302 to the root.
I have not tested this yet, but I think we need to say
try_files $uri $uri/ /index.html;
The text was updated successfully, but these errors were encountered:
The fallback is not actually redirecting to index.html. This is actually sending a 302 to the root.
I have not tested this yet, but I think we need to say
The text was updated successfully, but these errors were encountered: