CLONES & DOMAINS Clone websites share a common root directory and set of ASP.NET files. The landing page (default.aspx), does two things: 1. Uses the domain name to identify a site (GRP=x) 2. Redirects to homepage.aspx?Grp=X (or elsewhere). The domain name (HTTP_HOST) is used for redirects, as follows. protected void Page_Load() { string pDomain = Request.ServerVariables["HTTP_HOST"]; if (pDomain.IndexOf("aaworcester") > -1) { Response.Redirect("Homepage.aspx?GRP=WAI"); } else if (pDomain.IndexOf("district23aa") > -1) { Response.Redirect("Homepage.aspx?GRP=District23"); } else if (pDomain.IndexOf("aaemassd24") > -1) { Response.Redirect("Homepage.aspx?GRP=District24"); } else if (pDomain.IndexOf("aadistrict26") > -1) { Response.Redirect("Homepage.aspx?GRP=District26"); } else if (pDomain.IndexOf("SiteX") > -1) { Response.Redirect(SiteX/default.html); } } Upon redirect, Homepage.aspx initializes itself based on the GRP parameter. Or, the redirect can be elsewhere (X.html, Y.aspx, etc). For any cloned site, a domain check (+redirect) must be handled by the default landing page. In the example shown above: https://aaworcester.org https://district23aa.org https://aaemassd24.org https://aadistrict26.org Redirect to the same web page (Homepage.aspx) but specify a different GRP parameter. Note: TreatmentCalendar.aspx, if used by cloned sites, must also be modified for each site (GRP). ###