'Rewrite Rule is not working on Azure App Gateway

I need to truncate a part of the URL and I have added a rewrite rule and have associated it with routing rule. The backend health is also fine. But when I am hitting the URL it is not getting updated

Incoming URL: https://contoso.com/my-web/manage-data/addresses/v1?addressComplete=avenue+de&addressSearchFormat=SINGLE_LINE&country=FR&processMode=FASTCOMPLETION

Expected URL https://contoso.com/addresses/v1?addressComplete=avenue+de&addressSearchFormat=SINGLE_LINE&country=FR&processMode=FASTCOMPLETION

enter image description here

Regards, Sisir



Solution 1:[1]

I could resolve this by using Override back-end path. No need of Rewrite Rules in this scenario.

Reference: https://docs.microsoft.com/en-us/azure/application-gateway/configuration-http-settings

enter image description here

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Sisir Patnaik