I have set up Azure Front Door. There are several App Services set up as such:
https://www.thisismydomain2021.com/appservice1 --> https://this-is-my-app-service-1.azurewebsites.net
https://www.thisismydomain2021.com/appservice2 --> https://this-is-my-app-service-2.azurewebsites.net
The matching is using the "/appservice1/", "/appservice2/".
I do not want those matching paths to make it through to the App Services. For Example:
https://www.thisismydomain2021.com/appservice1/this/folder/makeitso.html --> https://this-is-my-app-service-1.azurewebsites.net/this/folder/makeitso.html
I did try pretty much everything to remove "appservice1" and appservice2" from the origin URL using a rule set.
Condition: Request Path Contains "/appservice1/" Case transform To Lower
Action: URL Rewrite Source Pattern: "/appservice1/" Destination: "/" Preserve unmatched path: Yes
The only one that I managed to see do any action in the logs was this:
Condition: Request Path Contains "/appservice1/" Case transform To Lower
Action: URL Rewrite Source Pattern: "/" Destination: "/testaddition/" Preserve unmatched path: Yes
And the result is shown below. Not what I wanted, but it proved that it is possible to rewrite the URL in some way, just not how I want it.:
https://this-is-my-app-service-1.azurewebsites.net/appservice1/testaddiition/this/folder/makeitso.html
Any help greatly appreciated.
Thank you
David