I use the Azure Verizon CDN to publish my web application (SPA) from the blob storage. I have successfully configured my own domain and SSL. I added a rewrite rule in the CDN to redirect it to the default index.html document. Essentially, it accepts an incoming request and inserts "index.html" between the URL path and any query lines. So
mydomain.com/startup
goes tomydomain.com/startup/index.html
mydomain.com/homepage
goes to mydomain.com/homepage/index.html
and also
mydomain.com/showuser/?userId=xxxxx
goes tomydomain.com/showuser/index.html/?userid=xxxxx
Everything seems to be working well.
Existing rule for adding a default document
The URL in the address bar used by the SPA never requests the actual file, but the code in the default document index.html does. And all these file requests fail with 404 because I think the rewrite rule also applies to them.
What I want is some way not to rewrite the URL if the URL contains a file name. The rules mechanism does not allow me to add such a condition when using the URL rewrite function - obviously, you cannot use any matching conditions for the URL when trying to use the URL rewrite function.
Error trying to use condition associated with URL file name
source
share