Mike Wright wrote:
I have an client with two domains (www.phitlifestyle.com and www.phitonline.com) which they want to point to two different sites. I have a single DNN install with 2 portals, and the portal aliases are set up correctly (i.e. one URL points to one portal, the other points to the second portal). The problem is, when I try and go to the phitonline.com site, it just dumps me into the phitlifestyle site every time.
I have cross-checked every setting I can think of with another client's site setup (they also have two URLs pointing to 2 portals on their single DNN install, and that's working perfectly!) and I can't see any obvious difference that might explain why the phitonline.com portal aliases simply don't work!
I remember seeing somewhere that this could be caused by a module -- I think it was a DNN Sharp module that caused them problems, although they were actually getting an error when going to the portal, whereas I am being taken to the wrong portal.
Anyway, if anyone has any ideas of what I might be missing, I'd be grateful for the help.
Your setup sounds correct.
The way multi-portal works is as follows:
1 IIS website has 1 DNN Install
The DNN Install has two portals
The IIS Website is bound to all domains for all portals
Each domain is associated with the correct portal using the 'Site Alias' settings in Admin->Site Settings.
You should never see the domain for another portal in a portal you're looking at. Underneath the covers, this maps to the PortalAlias table. You should see the same list of domains in here as are bound to your IIS Website. The PortalAlias entry has a portalId specified, and when DNN receives a request for the domain/site alias/portal alias (all mean the same here), then it will load the portal based off the PortalId in that table.
If you have a situation where a portal is being incorrect loaded, it's likely to be one of two causes:
1) The alias/domain name is associated with the wrong portal (portalId in PortalAlias table is incorrect)
2) You have a redirect from one to the other. You can tell this because the domain name in the address bar of the browser changes after you enter it. Ie domaina.com redirects to domainb.com, so you end up with 'domainb.com' in the address bar after you entered domaina.com
Double check all your settings and restart your site. Even the most experience DNN'er gets this wrong from time to time.