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 ...How do I enable SSL?How do I enable SSL?
Previous
 
Next
New Post
8/21/2007 12:39 PM
 

John Mitchell wrote

You don't have to hard-code the urls if you create a new page.  You could just set the Secure flag in the Page Settings.  Here's a tutorial on how to setup SSL in 4.5.4+

To change the links you need to modify your skin, or you could do it with my Free PageBlaster module.

Here is a tutorial that is not exactly what you are doing, but it shows how to change the links in your output using PageBlaster:

http://www.snapsis.com/DotNetNuke/Support/tabid/560/forumid/16/postid/6348/view/topic/DNN-Tutorials-Guides-6348.aspx

 

Hi John,

i also want to enable SSL to login and register user pages.

Could you give some more details conerning how to modify the skins in order to change the URLs?

thanx

 

 
New Post
8/21/2007 1:25 PM
 

In your skin, add this code to the top:

<script runat="server">
   Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
           If Request.IsAuthenticated Then
               hypLogin.NavigateUrl=  "http://" &  & Request.Url.Host & "/admin/security/Logoff.aspx"
               hypLogin.Text = "Logout"
          Else
               hypLogin.NavigateUrl="https://" & Request.Url.Host & Request.Url.AbsolutePath & "?ctl=login" & Request.Url.Query.Replace("?","&")
          End If
   End Sub
</script>

Then replace the code that looks like this:

<dnn:LOGIN runat="server" id="dnnLOGIN" />

with this:

<asp:hyperlink id="hypLogin" cssclass="SkinObject" runat="server">Login</asp:hyperlink>


DotNetNuke Modules from Snapsis.com
 
New Post
8/22/2007 6:06 AM
 

Hi John,

I would like to ask a few more questions:

1) Is that the hard coded method you mentioned earlier?

2) Does this code work only for the login user page? If yes, what about the register user page?

3) Does this code work with the existing login (and register) user page(s) or should i create new page(s) and select the IsSecure option?

4) I have just added the code you suggested on my default skin page "DNN\Portals\_default\Skins\DNN-Blue\Horizontal Menu - Fixed Width.ascx". The skin ocontrol bject fails to be created. Inside the code behind Default.aspx.vb, an exception is thrown for the command:

    ctlSkin = CType(LoadControl("~" & SkinPath), UserControl)

    and i get a simple error message when loading the DNN site.

    Is there something i am doing wrong? Maybe, i should first ,create the new login pages (see question no 2)?

regards

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...How do I enable SSL?How do I enable SSL?


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