Forum Moderators: open

Message Too Old, No Replies

SSL Redirect on IIS

Redirect non-ssl requests to SSL

         

mercnboy3

6:05 pm on Jun 21, 2005 (gmt 0)

10+ Year Member



Is there anyway to redirect non-ssl requests to SSL using IIS?

I am aware of various programming methods to accomplish this. Just wondering if there is any way to let IIS handle it ( so I don't have to have the code at the beginning of every file ). I have tried to set an ASP redirect page to send all 403.4 errors to, but I could not get the requested URI from ASP. Not to familiar with regular ASP maybe there is a way, would be willing to use global.asa if necessary. However, there are several ASP.NET applications running in the directory (which is easy to redirect using global.asax).

Thanks for any help.

Kerry

mattur

4:42 pm on Jul 1, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You could possibly do it via isapi_rewrite or other url re-writing extension.

Otherwise, you can do it in ASP by checking the "HTTPS" ServerVariable.