I am referring to the document here
My understanding of url rewrite is, when a request (/folderA/folderB
) comes to IIS, URL rewrite is happening at begin-request stage. IIS will rewrite the url to /folderA/folderC
, and then IIS will try to fetch document from folderC
. However in my case, the URL is not being re-written and then fetching documents from folderA
. Below is my directory structure
Root-Folder
folderA
folderC
From IIS logs, I can confirm that the url is /folderA/folderB
. I enabled Failed Request Tracing
, however I do not see any xml files that related to rewrite of /folderA/folderB
to /folderA/folderC
. From Chrome Dev Tools, I can confirm that the request url is /folderA/folderB
The rule defined is for regex pattern of folderA/folderB
and action is to rewrite to folderA/folderC
.
IIS version is 10, and I am trying to host Angular 16 application.