You need to use the SSL accelerator code to let Kentico know that the SSL is terminated before the actual web server and that Kentico should be generating HTTPS in the links. Regrettably, there is currently a bug in Kentico, so if you are using hotfix 35 or later, the SSL accelerator does not work. We are already working on fixing this issue into this week's hotfix no.43. As a workaround, you can try adding one line (wrapped into ** in the sample below) to the SSL accelerator code:
// Checks if requests are forwarded as SSL
private static void HandleSSLRequests(object sender, EventArgs e)
{
if ((HttpContext.Current != null) && (HttpContext.Current.Request != null))
{
//Add this line as a workround
**RequestContext.CurrentURL = RequestContext.CurrentURL;**
// always consider as HTTPS
RequestContext.IsSSL = true;
}
}