.net - Redirecting the whole site to HTTPS in ASP.net application -


i have done project using asp.net , ready go live. management has decided use ssl reasons , hence site should load in https

since project quite big, , pain full check url , redirect https in pages, there simple way can handle globally or in master pages ?

so, if website url typed http, should redirected https site. how can achieve ?

help needed.

if don't want control per iis nate suggested, can redirection in global.asax:

void application_beginrequest(object sender, eventargs e) {     if (request.url.scheme != "https")         response.redirect("https://yoursite.com"); } 

may not witty solution, job.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -