URL redirection where users use the old URL and it gets automatically redirected to the new URL

Venu Gopal Krishna VV 100 Reputation points
2023-09-14T18:30:53.5833333+00:00

Hi All,

need some help on webapp for below.

I have the requirement is URL redirection where users use the old URL and it gets automatically redirected to the new URL. Adding the new domain under Custom Domain section only works if the users access the new URL directly.

how this can be done ?

Thank you in advance.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,930 questions
{count} votes

1 answer

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 22,706 Reputation points Moderator
    2023-09-18T07:57:10.5466667+00:00

    @Venu Gopal Krishna VV Thanks for reaching here! Just to confirm, Is this a Windows or Linux WebApp?

    Further to add on Vahid response, please see this blog by Zain Rizvi for the detailed steps.

    For cases where you want to replace the path segment of a URL as part of redirection, you can set this field with the new path value. Otherwise, you can choose to preserve the path value as part of redirect. So, using this field, you can redirect all requests sent to https://www.contoso.com/\* to https://www.contoso.com/redirected-site. see- https://learn.microsoft.com/en-us/azure/frontdoor/front-door-url-redirect?pivots=front-door-standard-premium#destination-path

    If you’re using Application Gateway, please see this blog for more info.

    Let us know if further query or issue remains.

    0 comments No comments

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.