.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

c++ - llvm function pass ReplaceInstWithInst malloc -

java.lang.NoClassDefFoundError When Creating New Android Project -

Decoding a Python 2 `tempfile` with python-future -