LMSouq
server-admin AI Answered

nginx: send all requests to a single html page

PR
prismofeverything
1 month ago
5 views
Problem Description
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 javascript app. It seems like it should be a simple thing to do? location / { rewrite (.*) base.html break; } works, but redirects the url? I still need the url, I just want to always use the same page.

AI-Generated Solution

Powered by LMSouq AI · GPT-4.1-mini

✓ Solution Ready
Analyzing problem and generating solution…
Was this solution helpful?
Back to Knowledge Base