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 ...What is the best way to make ENTIRE DNN 6.x -7.x pages ALL SSL pages?What is the best way to make ENTIRE DNN 6.x -7.x pages ALL SSL pages?
Previous
 
Next
New Post
3/8/2013 3:34 PM
 

Ok... that sounds like a good solution... too as the web.config route is not working for me... our test server is running IIS 6 (But i'm still trying to make it work with iis6 - no success)
For now, I'm also willing to try your solution... I'm not the best SQL syntax person but...

Could you provide a sample SQL statement that would safely execute and set all the existing tabs as IsSecure=1 ?

 
New Post
3/12/2013 1:17 PM
Accepted Answer 
Thanks for the input from the forum members who responded... However, Here is an interesting solution discovered with the help of one of my C# programmers friends...
SOLUTION: We tried the following and it WORKED FINE... so far..
1) Make sure you have "ONLY" SSL enabled under Admin Site Settings
2) In DNN version 6.x(ours was 06.02.05) locate the Default.aspx.cs file. Note make sure you make a backup of Default.aspx.cs and most important is LEAVE THE Default.aspx file alone this time... make no changes. Leave it as is out of box from DNN 6.x
3) Locate code lines 205&206 or find the text "private void InitializePage()" which is actually at code line 205... Now jump to line 206 and between lines 206 and 207 insert the following code:
var thisUrl = Request.Url.ToString(); if (!thisUrl.Contains("https")) { var sslUrl = thisUrl.Replace("http", "https"); Response.Redirect(sslUrl, true); }

This should take up code lines 207-212 and end just before the existing code of var tabController = new TabController(); on about code line 214
4)Save the file.

That's it!... For us this seems to work well so far... it is redirecting ENTIRE site or ALL pages to "HTTPS"
Without our having to go to every single existing page(about 50+pages) and selecting the SSL checkbox.

Again this worked for us... your situation may vary... but anyone in the forum who has a SSL server certificate setup on their DNN site and needs the entire site to be secured with SSL can give this a try.

If anyone has a better simpler solution they have tried... please feel free to add to this post.
 
New Post
6/20/2014 3:17 PM
 
Hey Reginald, I realize this post is over a year old but it sounds most like what I'm trying to accomplish. I was hoping to get an update from you now that some time has passed and new versions of DNN have come out.

I currently have a site (DNN 7.2.2) with SSL cert installed. I currently ONYL have ssl setup on the login page as well as a few pages that have smith cart installed on them for my payment gateway.

I have recently moved to a powerhouse of a server and was hoping to enable SSL on the entire site. Not real sure why but I want to (I like the little green security bar :-)

I have noticed that when enforce SSL is enabled that it seems to redirect just about every page to https. How did the above solution turn out for you, and have you done anything difference in the months since then; also hoping that you have gone through some upgrades since then and most likely had to backup/restore your aspx files before and after. Would you care to give me a quick update on anything you have done since this post please?

I noticed one day that all of my pages were coming up as https and somehow the enforce SSL box got checked. I'm quite sure that I didn't do this consciously. It seemed to work well that way, but when I turned it off my pages that I originally set as secure were the only ones https. So it seems that the enforce SSL option in site settings really did the trick but to what extent I don't know. I can't confirm/deny what happened to host or admin pages with this enabled. Also what about site performance with SSL on all pages? Did it seem to have an impact?

Thank you in advance for any response.
 
New Post
6/20/2014 3:17 PM
 
Hey Reginald, I realize this post is over a year old but it sounds most like what I'm trying to accomplish. I was hoping to get an update from you now that some time has passed and new versions of DNN have come out.

I currently have a site (DNN 7.2.2) with SSL cert installed. I currently ONYL have ssl setup on the login page as well as a few pages that have smith cart installed on them for my payment gateway.

I have recently moved to a powerhouse of a server and was hoping to enable SSL on the entire site. Not real sure why but I want to (I like the little green security bar :-)

I have noticed that when enforce SSL is enabled that it seems to redirect just about every page to https. How did the above solution turn out for you, and have you done anything difference in the months since then; also hoping that you have gone through some upgrades since then and most likely had to backup/restore your aspx files before and after. Would you care to give me a quick update on anything you have done since this post please?

I noticed one day that all of my pages were coming up as https and somehow the enforce SSL box got checked. I'm quite sure that I didn't do this consciously. It seemed to work well that way, but when I turned it off my pages that I originally set as secure were the only ones https. So it seems that the enforce SSL option in site settings really did the trick but to what extent I don't know. I can't confirm/deny what happened to host or admin pages with this enabled. Also what about site performance with SSL on all pages? Did it seem to have an impact?

Thank you in advance for any response.
 
New Post
6/20/2014 3:17 PM
 
typical 3 press of the submit button sent 3 copies.  Sorry all for the duplicate posts, i thought the button was broken and obviously mashing on it a million times helped :-)
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...What is the best way to make ENTIRE DNN 6.x -7.x pages ALL SSL pages?What is the best way to make ENTIRE DNN 6.x -7.x pages ALL SSL pages?


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