Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Portal Alias problemPortal Alias problem
Previous
 
Next
New Post
10/14/2014 12:32 PM
 

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.

 
New Post
11/7/2014 4:25 PM
 
Can you provide a screenshot of the Host > Site Management and Admin -> Site Settings -> Advanced Settings -> Site Aliases, for both portals. Also your bindings in IIS. Do you have one or two sites setup in IIS?
 
New Post
11/8/2014 1:25 PM
 
if you can pull up sql and look at the PortalSettings table, you should see an entry for for PortalAliasMapping (i think).

Also check that your alias mode is not redirect but set to canonical.
 
New Post
11/9/2014 11:51 PM
 
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.

 
New Post
11/10/2014 5:33 AM
 
One site set up in IIS. Bound to both phitlifestyle.com and phitonline.com.

Here is the PortalAliasID, PortalID and HTTPAlias from the PortalAlias table:
3 0 phitlifestyle.com
15 0 www.phitlifestyle.com
16 3 phitonline.com
17 3 www.phitonline.com

SiteAlias Mapping Mode set to Canonical.

phitonline.com has not been set anywhere to redirect to phitlifestyle.com.

Have restarted my site (again and again!), both DNN (Host Settings -> Restart Application) and IIS.

Still no joy!
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Portal Alias problemPortal Alias problem


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.

Content Layout

Subscribe to DNN Digest

DNN Digest is our monthly email newsletter. It highlights news and content from around the DNN ecosystem, such as new modules and themes, messages from leadership, blog posts and notable tweets. Keep your finger on the pulse of the ecosystem by subscribing.  


Copyright 2017 by DNN Corp Terms of Use Privacy
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out