简体   繁体   中英

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

在此处输入图像描述

Regards, Sisir

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

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

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM