Hello Niraj
Greetings!
I understand that you created a redirection rule in the application gateway, and it is working as expected. However, to find the referrer, you will not find it in the application gateway diagnostics logs, you will only see the status code.
In the logs, you will get the following values:
Kindly check the below reference doc:
NOTE: Rewrites aren't supported when the application gateway is configured to redirect requests or show a custom error page.
Doc: https://learn.microsoft.com/en-us/azure/application-gateway/rewrite-http-headers-url
Hope the above answer helps!
Please let us know do you have any further queries.
Please do consider to “up-vote” wherever the information provided helps you, this can be beneficial to other community members.