@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.