How to redirect one azure web site to another

Xiang ZHU 40 Reputation points
2023-06-28T21:38:07.9233333+00:00

Hello,

I hosts web site say https://one.azurewebsites.net with Azure web app.

Publishing model: Code

Runtime Stack: Staticsite - 1.0

Operating System: Linux

User's image

Now I have another web app with url : https://two.azurewebsites.net.

I would like to configure the web app of https://one.azurewebsites.net that redirects all the trafics to https://two.azurewebsites.net

Which means:

etc.

Could someone can tell me how to achieve that ? Thanks

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

2 answers

Sort by: Most helpful
  1. Luke Murray 11,436 Reputation points MVP Volunteer Moderator
    2023-06-28T21:50:19.7266667+00:00

    Hi, Xiang

    You could add a web.config redirect file to your application, to do the redirect.


  2. Konstantinos Passadis 19,586 Reputation points MVP
    2023-06-29T10:20:57.3266667+00:00

    Hello @Xiang ZHU

    I would suggest this link

    https://rakhesh.com/azure/url-redirection-using-azure-app-service/

    Please follow instructions and comeback with feedback

    I hope this helps!

    Kindly mark the answer as Accepted and Upvote in case it helped!

    Regards


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.