Redirect multiple URLs to different sites

If you have mulitple URLs that are mapped to the same server (same ip address) but where each URL shall open a different site in Web Viewer, you can setup the redirection as follows:

  1. Edit the C:\inetpub\wwwroot\iisstart.htm file and replace the existing code with the following:

    <html> <head> </head> <body onload="checkUrl()"> <script> function checkUrl() { var url = window.location.href; if (url.includes("brand1")) { location.href = "https://parts.brand1.com/AssertWeb/auto/Brand1" } else if (url.includes("brand2")) { location.href = "https://parts.brand2.com/AssertWeb/auto/Brand2" } else if (url.includes("brand3")) { location.href = "https://parts.brand3.com/AssertWeb/auto/Brand3" } else location.href = "https://parts.brand0.com/AssertWeb/auto/Brand0" } </script> </html>

     

When the root of the domain is called, the checkUrl function is automatically called. It will read the domain name and based on the domain name it will open the appopriate site in AssertWeb using the appropriate domain name. If there is no match, it will open the default URL (brand0).