CLONES & DOMAINS Website clones share a root directory and set of ASP.NET files. A common landing page (default.aspx), does two things: 1. Check URL for a cloned site 2. Redirect to the cloned site The domain name (HTTP_HOST) controls the redirect: 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("Area30Treatment") > -1) { Response.Redirect("Homepage.aspx?GRP=A30TC"); } else if (pDomain.IndexOf("SiteX") > -1) { Response.Redirect(SiteX/default.html); } } When called, Homepage.aspx configures itself for a specific GRP. Or, the redirect can go elsewhere (X.html). For each clone site, a domain check (+redirect) must be added to the default landing page. For example, Homepage.aspx configures itself for each of these sites: https://aaworcester.org https://district23aa.org https://aaemassd24.org https://aadistrict26.org https://Area30Treatment.org https://RMOKOS.aaGroup.site https://Choices.aaGroup.site https://WareItsAt.aaGroup.site https://MaynardNow.aaGroup.site https://HarvardHJF.aaGroup.site https://Catacombs3.aaGroup.site https://StowSunday.aaGroup.site https://NashobaBBSS.aaGroup.site https://SudburySunday.aaGroup.site https://PathToRecovery.aaGroup.site https://LeominsterBBSS.aaGroup.site NOTE 1: For Sendmail(), SMTP credentials per clone (or a default) are used. NOTE 2: TreatmentCalendar.aspx.cs (if used) must be tweaked, per clone. ###