Prior to setting up a website in IIS, setup a domain with your DNS provider. For this example we'll use uat.mycompany.com. First, we will setup IIS to handle secure SSL traffic and then we will setup a redirect to handle unsecured HTTP traffic by redirecting those users to the HTTP version of the application.
In IIS Manager, on the "Sites" node, right click and "Add New Website".
MyCompanyDefaultAppPool as the Application Poolhttpsuat.mycompany.com for UAT or app.mycompany.com for Production.Setup IIS Website - MyCompany_Redirect
C:\WebApps\MyCompany_Redirect folder and use the DefaultAppPool as the application pool.https://uat.mycompany.com/ for UAT or https://app.mycompany.com/ for Production