I'm writing HTML pages for a single page application, and want to publish it to my current ASP hosting, so I'm using the IIS URL Rewrite module to send a lot of requests to /index.html. I'm sending them like this:
<rule name="Section">
<match url="sections/(.*)" />
<action type="Rewrite" url="index.html?section={R:1}" logRewrittenUrl="true" />
</rule>
What I'd like to do is get the rewritten query string with JavaScript, though this seems like an impossibility. Is there a way in a static html page to get the rewritten query string? window.location.href is the original url, not the rewritten one.
.../index.html?section=range
in the http header and read it in via javascript? – threeFourOneSixOneThree 2 days ago