Developer forum

Forum » Development » Page in https

Reply

and if how do I set it up.


Replies

 
Reply

Are you looking for something like this: http://support.microsoft.com/kb/324069

 
Reply

in your default.aspx.cs under public void RunOnEveryPage_Load

 

you can add the follow code to change http to https on specific pages outside aswell as inside of DW

 

if (Request.IsSecureConnection == false && Request.QueryString["ID"] == "55")
{
Response.Redirect("https://" + this.Request.Url.Host + Request.RawUrl);
}

 

 

And as Lars linked you need to get an SSL certificate aswell.

 
Nicolai Høeg Pedersen
Reply

Or by using javascript:

if (location.protocol != 'https:') {
 window.location = 'https://'+ location.host + location.pathname + location.search;
}

 

Modify to have work on only one particular page.

 
Reply

Thanks all.

I'll look in to it.

 

You must be logged in to post in the forum