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 ...SSL causing incorrect URLs SSL causing incorrect URLs
Previous
 
Next
New Post
10/13/2011 1:22 PM
 
I have a site with two portals (call them outside and inside) - and just added an SSL cert.  Both portals have SSL Enabled and Enforced.  The outside portal uses www.mydomain.com and the inside portal uses the alias www.mydomain.com/inside.  I have one page on the inside portal setup to require SSL.  My problem is that once on the https page, all references to other pages (menu and other links) are dropping the "/inside" portion of the link URLs.  IOW, instead of https://www.mydomain.com/inside/mypage.aspx, the menu is using https://www.mydomain.com/mypage.aspx -- effectively looking for the page on the outside portal.  FWIW I am using DNN 6.0.0. and friendly URLs.

Anyone have any clues?
Thanks,
Scott
 
New Post
10/19/2011 1:28 PM
 
I found the problem.  When creating the URLs for the menu, the code ultimately calls GetFriendlyAlias.  It checks whether the current URL request starts with the portal alias - if it does, it prefixes the new URL with the alias - otherwise, it does not and it stays a relative reference.  (Back in the browser, the relative reference knows nothing about the real alias and it looks like the reference is off the domain name).  All should be well, except that GetFriendlyAlias adds the port to the alias before comparing.  AddPort will not add port 80, but will add Port 443 if the site is secure.  Therefore, the original request will not start with the alias -- ultimately causing all pages in the menu to use relative references without the alias.

Probably not the best explanation.  However, I would think this would cause problems in a number of sites that (1) use portals with aliases and (2) use SSL.  I have spent too many hours figuring this out (and learning a lot about the DNN internals!).  Is this something that could get remedied in a future release?

Thanks,
Scott
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...SSL causing incorrect URLs SSL causing incorrect URLs


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