Hi Jelle,
Open the DNN solution of your DNN instance.
the code change should be performed inside the "URLRewriteModul.vb" file of the DotNetNuke.HttpModules.UrlRewrite project.
Inside the function 'OnBeginRequest()', go to line 348 and replace the if statement block that already exists with this one:
' if a protocol switch is necessary
If strURL <> "" Then
If strURL.ToLower.Contains("captcha.aspx") Then
'Don't do anything since this is a captcha URL
ElseIf strURL.ToLower.StartsWith("https://") Then
' redirect to secure connection
Response.Redirect(strURL, True)
Else ' when switching to an unsecure page, use a clientside redirector to avoid the browser security warning
Response.Clear()
' add a refresh header to the response
Response.AddHeader("Refresh", "0;URL=" & strURL)
' add the clientside javascript redirection script
Response.Write("<html><head><title></title>")
Response.Write("<!-- <script language=""javascript"">window.location.replace(""" & strURL & """)</script> -->")
Response.Write("</head><body></body></html>")
' send the response
Response.End()
End If
End If
Then rebuild the DNN solution.
If, for any reason, building the DNN solution is not an option, send me your e-mail address and i' ll send you the rebuilt "DotNetNuke.HttpModules.UrlRewrite.dll" assembly file. You then replace the file with the old one located under the <Your DNN Installation path>\Website\bin folder.
I have tried it both ways and it works as expected.
regards,
Dimitris