Question : IIS7 Port 80 Redirection in an App

How do I redirect some one from port 80 to 443 in a .NET app within a website? In other words, I want to re-direct http://www.mysite.com/myapp to https://www.mysite.com/myapp. (I'm not a web programmer so I'm not sure how to do this.)

I've assigned 500 points to this because we have an app going to production on Monday and I've been asked to resolve this prior to that. So, you are more likely to get the most points if you are the "fustest with the mostest" (to quote Gen. Beford Forrest from the U.S. Civil War).

Answer : IIS7 Port 80 Redirection in an App

The following asp.net code can perform a redirect.  If you were to just put just this into a default.aspx page and run it, it would redirect the users browser to whatever URL you put into the response section.

You could try and incorperate this into whatever page you want the redirect to happen.



Random Solutions  
 
programming4us programming4us