Using nginx, I want to preserve the url, but actually load the same page no matter what. I will use the url with History.getState() to route the requests in my
History.getState()
The correct way would be:
location / { rewrite (.*) base.html last; }
Using last will make nginx find a new suitable location block according to the result of rewriting.
last
location
try_files is also a perfectly valid approach to this problem.
try_files