SSL on part of site

Vote:
 
I want to use SSL on 2 pages/page types on a site for a customer. I have been trying a redirect for those pagetypes but there when I do that all the links in menus etc become https links which I don't want. Does anyone have a solution on how to use SSL on part of the site?
#12232
Mar 25, 2008 18:34
Vote:
 
The links are relative, which is a good thing. If you look at the code, you'll see that https is not part of the href. To avoid this, you need to use full urls, and you probably want to use Configuration.HostUrl to do this. But beware that HostUrl is a "smart" property that automatically detects that the site is running in SSL mode, and prepends https for you. See the HostUrl SDK documentation on how to avoid this. /Steve
#13891
Mar 25, 2008 18:43
Vote:
 

Hey. Did you get any further with this? As I have a requirement to have a part of my site under SSL.

Could anyone advise what would be the best route here? I was thinking of having a property on a page to say whether it should be in SSL mode or not? Then when it hits a page with it turned off, it switches back to HTTP does that sound a good solution?

Matt

#31464
Jul 31, 2009 14:55