Get Portal Context from vanity url

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Nick Marmolejo (NickMarmolejo_at_discussions.microsoft.com)
Date: 10/04/04


Date: Mon, 4 Oct 2004 13:59:01 -0700

I am trying to get a portal context object from a IIS hostheader.

We create a iis web and create a portal in that website. Then we add a
additional host header to that portal.

Example myportal.test.company.com then we add myportal.company.com

Because the portalcollection urls only knows about myportal.test.company.com
how do you get the portalcontext using the vanity from a middle tier object?