Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

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 ...Primary AliasPrimary Alias
Previous
 
Next
New Post
2/16/2015 10:30 PM
 

Hi,

I have just finished a new DNN build and was wondering about the site alias settings.

While I was building the site I was using "domain.org" (BTW - just an example domain name) and it was marked, by default, as the primary domain and it couldn't be edited. When I was ready to use the main domain name I added "domain.com" as an additional alias. I then updated the hosting account to be treated as "domain.com" (domain.org was no longer to be used). When I log in now I see domain.org is still marked as the primary, but I can edit it. So I edit it to remove the primary status. But the alias domain.com (that I'm now logged in with) is not marked as primary, and as I can't edit it (because I'm visiting the site with domain.com) I also can't set it as primary.

I no longer can access the site using domain.org because of how the domain(s) are being managed, so I can only access the site with "domain.com", but I don't need to access it using the domain.org name anyway, because it was only a temporary domain used to build the site.

My question is, if I remove the alias for domain.org, will domain.com automatically become the "primary" or do I even need to worry about it being marked as primary if there is only a single alias? BTW - I've also turned off the "auto alias" option if that makes any difference.

My concern is that I will render the site inaccessible if I remove the domain.org if domain.com is not marked as "primary" and as it is, I have no method to access the site using an alternate domain name to "unlock" domain.com so I can edit it (assuming that I even need to edit it).

Thanks.

Jim

 
New Post
2/17/2015 4:32 AM
 
This is a known glitch in the UI, preventing you from editing primary property of currently used alias.
You may run the following statement in Host > SQL and restart application afterwards:
UPDATE {databaseOwner}[{objectQualifier}PortalAlias] SET isPrimary = 1 WHERE HTTPAlias = 'domain.com'

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
2/17/2015 7:21 AM
 
Hi Sebastian,

I ran the script (replaced 'domain.com' with the actual domain name) and restarted the app pool and the domain still isn't marked as primary. BTW - There was a prompt after running the script (right below the SQL script area) that said something about "did not return any results" and at the top of the screen was a note that stated "the script ran successfully" or something to that affect.

But, does it need to be marked as primary or will it not being marked as primary become an issue at some point?

As always, thanks for your help.

Jim
 
New Post
2/17/2015 12:52 PM
 
there might be a constraint, my bad, You should run
UPDATE {databaseOwner}[{objectQualifier}PortalAlias] SET isPrimary = 0 WHERE HTTPAlias = 'domain.org'
GO
UPDATE {databaseOwner}[{objectQualifier}PortalAlias] SET isPrimary = 1 WHERE HTTPAlias = 'domain.com'
GO


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Primary AliasPrimary Alias


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.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out