URL redirection using application gateway

WinTechie 286 Reputation points
2023-02-06T18:25:59.65+00:00

Hi,

I am trying to redirect xyz.app url TO xyz.com url

I have created a http based listener with host name "xyz.app" and a rule that will redirect the request to other https based listener with name "xyz.com" and appropriate common name matching certificate

when I try to browse xyz.app, I get CN name invalid certificate error.

Developer tools in the browser shows following transaction :


General

request url: http://xyz.app/

status code: 307 internal redirect

Response headers:

Location: https://xyz.app/ (which I am expecting it to be https://xyz.com/ considering redirection rule in place)

General

request url: https://xyz.app/


any idea/inputs would be very much appreciated!!

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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.