Application Gateway (WAF) Rewrite

Nibbler 616 Reputation points
2020-10-25T14:18:12.253+00:00

Hi Q&M,

I trying to use the "Rewrite" feature on the Azure Application Gateway to remove a part of a path from an incoming URL request. But without luck.

I have not been able to find any useable documentation on the Rewrite feature.

The incoming URL (www.test.com/test/content/) should bee rewritten without "test" so it looks like "www.test.com/content/".

Regards, Kian

Azure Application Gateway
Azure Application Gateway
An Azure service that provides a platform-managed, scalable, and highly available application delivery controller as a service.
980 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Lohith Chowdary Chilukuri 1 Reputation point Microsoft Employee
    2020-10-27T00:59:07.43+00:00

    @KianE1980, Please follow the guidelines below to configure the same.

    Open application gateway in Portal
    Hit rewrite rules on the left panel
    Configure new, give it a name and select the rule you want to associate it to.
    In the next tab, Click on add Rewrite rule.
    Then please look into the image attached for configuration.
    35271-path-rewrite.png


  2. Dark Diesel 1 Reputation point
    2021-01-31T21:28:30.817+00:00

    I solved this using 'Override backend path' on the HTTP settings;
    62321-image.png

    0 comments No comments