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 ...WWW and Non-WWW URL IssueWWW and Non-WWW URL Issue
Previous
 
Next
New Post
7/19/2012 12:25 PM
 

Hello all-

I am experiencing a strange issue with my DotNetNuke site, and am hoping that someone will be able to provide some insight as to what is causing the problem.

Right now, my site is the only portal on my DNN installation and it resides at www.domain.com/dnn. In my websitesettings, I have www.domain.com/dnn and domain.com set as portal aliases, with www.domain.com/dnn being the default one. ‘Site Alias Mapping Mode’ is set to ‘Redirect’ and ‘Auto Add Site Alias’ is turned on. The purpose of these settings is to have a non-www URL redirected to a www URL (forexample, domain.com/dnn/books.aspx would redirect to www.domain.com/dnn/books.aspx.)

For the most part, this redirect seems to be working; however, an issue arises when members try to login on the website with www and non-www URLs. If I visit www.domain.com, login to the website, and browse through several pages, everything seems to work fine. But if I visit www.domain.com, login to the website, browse to www.domain.com/dnn/books.aspx, manually remove the ‘www’, and then navigate to domain.com/dnn/books.aspx, I find that I am now logged out of the website, and I am redirected to a login page since I don’t have access to www.domain.com/dnn/books.aspx unless I am logged in.

So, it appears that logging in on www.domain.com only works for URL’s that have a ‘www’ in them. If I navigate to a page and then remove the ‘www’, DNN nolonger recognizes my login.

Has anybody seen or heard of this issue before, and is there anything I can do to fix it? I have tried playing around with the portal alias settings, but nothing seems to work.

Additionally, I was trying to setup the host header value in my web.config file to remove the ‘/dnn’ part of my URL so that www.domain.com/dnn/books.aspx would appear as www.domain.com/books.aspx. I did this by simply entering ‘dnn’ as the Host Header value in my web.config file, but that didn’t work, and playing with the site aliases also didn’t seem to yield any results. I’m not sure if that issue is related to this one, but I thought I would mention it in case it has some connection.

Thanks,
Phil

 
New Post
7/20/2012 7:38 PM
 
Bump.
 
New Post
7/21/2012 9:15 AM
 

Hi Phil,

I am no expert on this subject but will take a stab at it since no one else has chimed in. I do know that it is recommended that DotNetNuke be installed in the root of the site. Having said that... based on what you typed above: "domain.com set as portal aliases", domain.com would not be a portal alias. Instead you would want domain.com/dnn without the www set as the portal alias. 

Give that a try. I would also think you would want to remove the portal alias that is just domain.com because it is not where your portal is installed.

Hope you get it sorted out.

Rich

 
New Post
7/21/2012 2:18 PM
 
Thanks for the response, Rich. I'll give that a try and see if that helps.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...WWW and Non-WWW URL IssueWWW and Non-WWW URL Issue


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