Reputation: 555
In Azure, I have set up the Application Gateway to redirect traffic from www.mysite.com to www.externalsite.com.
My DNS maps www.mysite.com to the Application Gateway public IP. I have two listeners on port 80 and 443 with redirect rules attached. The rules redirect traffic to www.externalsite.com.
Although the redirect works, I would like to ensure the URL (www.mysite.com) does not change in the address bar after being redirected to the external site.
Upvotes: 1
Views: 3677
Reputation: 1502
You can use HTTP Header rewrite functionality in Application Gateway V2 SKU and rewrite the Location header in the response header to www.mysite.com at the time of redirection.
Upvotes: 1