.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 - How to retrieve a variable from the Apache configuration inside the module? -

c# - Constructor arguments cannot be passed for interface mocks -

python - malformed header from script index.py Bad header -