Hosting
Web.config domain rewriting
Here’s a quick and easy domain rewriting solution running on an Azure App service.
Some assumptions before you can start though:
- The app service must be configured with the custom domain you want to redirect from.
- The app service is running on the Windows stack (you can configure this during App Service setup).
To make things even easier, you can set this whole thing up from inside the Azure portal using the Advanced Tools option which opens the Kudu interface for the web server.
In the Kudu interface click on Debug Console -> CMD. Next, browse to the wwwroot
directory at site/wwwroot
. From there you can create new files.