By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,312 Members | 1,280 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,312 IT Pros & Developers. It's quick & easy.

Web Site to HTTPS

P: n/a
Hello,
Is there a set up in IIS 6.0 on W2K3 that can automatically switch my users
from http to https.

I know there are scripts that can be added to do that.

But is there a universal setup in IIS to do so. if not will a future IIS
provide that func.

Thank you,

Oct 3 '07 #1
Share this Question
Share on Google+
11 Replies


P: n/a
Not sure this is possible, these are two different sites. Why would you need
that? The typical approach is to redirect or transfer to the *other site
based on some condition (like checking out)

--
Regards,
Alvin Bruney
------------------------------------------------------
Shameless Author Plug
OWC Black Book 2nd Edition
Exclusively on www.lulu.com/owc
$24.99
"IfThenElse" <sq**********@hotmail.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
Hello,
Is there a set up in IIS 6.0 on W2K3 that can automatically switch my
users from http to https.

I know there are scripts that can be added to do that.

But is there a universal setup in IIS to do so. if not will a future IIS
provide that func.

Thank you,

Oct 4 '07 #2

P: n/a
Can I do the Redirect via a setup in IIS GUI, without writing any redirect
scripts?

"Alvin Bruney [MVP]" <some guy without an email addresswrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
Not sure this is possible, these are two different sites. Why would you
need that? The typical approach is to redirect or transfer to the *other
site based on some condition (like checking out)

--
Regards,
Alvin Bruney
------------------------------------------------------
Shameless Author Plug
OWC Black Book 2nd Edition
Exclusively on www.lulu.com/owc
$24.99
"IfThenElse" <sq**********@hotmail.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
>Hello,
Is there a set up in IIS 6.0 on W2K3 that can automatically switch my
users from http to https.

I know there are scripts that can be added to do that.

But is there a universal setup in IIS to do so. if not will a future
IIS provide that func.

Thank you,


Oct 4 '07 #3

P: n/a
"IfThenElse" <sq**********@hotmail.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
Is there a set up in IIS 6.0 on W2K3 that can automatically switch my
users from http to https.

I know there are scripts that can be added to do that.

But is there a universal setup in IIS to do so. if not will a future IIS
provide that func.
Not sure what you're actually asking for, but it sounds like this will do
the trick:
http://www.codeproject.com/aspnet/We...id=53615&exp=0

I never use anything else for sites which are part-HTTP and part-HTTPS - it
really is a "set it and forget it" solution...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Oct 4 '07 #4

P: n/a
You don't understand. I am switching my site to https. I don't have http
part and an https part.
I want any users that type http://www.mydomain.com to be redirected to
https://www.mydomain.com
My question is can this redirection be done in IIS GUI management console.
"Mark Rae [MVP]" <ma**@markNOSPAMrae.netwrote in message
news:eI**************@TK2MSFTNGP05.phx.gbl...
"IfThenElse" <sq**********@hotmail.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
>Is there a set up in IIS 6.0 on W2K3 that can automatically switch my
users from http to https.

I know there are scripts that can be added to do that.

But is there a universal setup in IIS to do so. if not will a future
IIS provide that func.

Not sure what you're actually asking for, but it sounds like this will do
the trick:
http://www.codeproject.com/aspnet/We...id=53615&exp=0

I never use anything else for sites which are part-HTTP and part-HTTPS -
it really is a "set it and forget it" solution...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Oct 4 '07 #5

P: n/a
Sounds like a job for URL rewriting.

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"IfThenElse" <sq**********@hotmail.comwrote in message news:uP**************@TK2MSFTNGP05.phx.gbl...
You don't understand. I am switching my site to https. I don't have http part and an https part.
I want any users that type http://www.mydomain.com to be redirected to https://www.mydomain.com
My question is can this redirection be done in IIS GUI management console.
"Mark Rae [MVP]" <ma**@markNOSPAMrae.netwrote in message news:eI**************@TK2MSFTNGP05.phx.gbl...
>"IfThenElse" <sq**********@hotmail.comwrote in message news:%2****************@TK2MSFTNGP04.phx.gbl...
>>Is there a set up in IIS 6.0 on W2K3 that can automatically switch my users from http to https.

I know there are scripts that can be added to do that.

But is there a universal setup in IIS to do so. if not will a future IIS provide that func.

Not sure what you're actually asking for, but it sounds like this will do the trick:
http://www.codeproject.com/aspnet/We...id=53615&exp=0

I never use anything else for sites which are part-HTTP and part-HTTPS - it really is a "set it and forget it"
solution...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net


Oct 4 '07 #6

P: n/a
Juan,

What do you mean, can you give more detailed info?

Thanks
"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:eK*************@TK2MSFTNGP05.phx.gbl...
Sounds like a job for URL rewriting.

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"IfThenElse" <sq**********@hotmail.comwrote in message
news:uP**************@TK2MSFTNGP05.phx.gbl...
>You don't understand. I am switching my site to https. I don't have http
part and an https part.
I want any users that type http://www.mydomain.com to be redirected to
https://www.mydomain.com
My question is can this redirection be done in IIS GUI management
console.
"Mark Rae [MVP]" <ma**@markNOSPAMrae.netwrote in message
news:eI**************@TK2MSFTNGP05.phx.gbl...
>>"IfThenElse" <sq**********@hotmail.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl.. .

Is there a set up in IIS 6.0 on W2K3 that can automatically switch my
users from http to https.

I know there are scripts that can be added to do that.

But is there a universal setup in IIS to do so. if not will a future
IIS provide that func.

Not sure what you're actually asking for, but it sounds like this will
do the trick:
http://www.codeproject.com/aspnet/We...id=53615&exp=0

I never use anything else for sites which are part-HTTP and part-HTTPS -
it really is a "set it and forget it" solution...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net



Oct 4 '07 #7

P: n/a
"IfThenElse" <sq**********@hotmail.comwrote in message
news:uP**************@TK2MSFTNGP05.phx.gbl...
You don't understand. I am switching my site to https. I don't have http
part and an https part.
I want any users that type http://www.mydomain.com to be redirected to
https://www.mydomain.com
So reference WebPageSecurity.dll and set the entire set to HTTPS
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Oct 4 '07 #8

P: n/a
Using URLrewrite ( look that up at MSDN ) is one way of solving the problem.

You can also solve it with this code :

If Request.ServerVariables("SERVER_PORT")=80 Then
Dim strSecureURL
strSecureURL = "https://"
strSecureURL = strSecureURL & Request.Url.Host
strSecureURL = strSecureURL & Request.RawUrl.ToString
Response.Redirect(strSecureURL)
End If


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"IfThenElse" <sq**********@hotmail.comwrote in message news:O0**************@TK2MSFTNGP05.phx.gbl...
Juan,

What do you mean, can you give more detailed info?

Thanks
"Juan T. Llibre" <no***********@nowhere.comwrote in message news:eK*************@TK2MSFTNGP05.phx.gbl...
>Sounds like a job for URL rewriting.

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"IfThenElse" <sq**********@hotmail.comwrote in message news:uP**************@TK2MSFTNGP05.phx.gbl...
>>You don't understand. I am switching my site to https. I don't have http part and an https part.
I want any users that type http://www.mydomain.com to be redirected to https://www.mydomain.com
My question is can this redirection be done in IIS GUI management console.
"Mark Rae [MVP]" <ma**@markNOSPAMrae.netwrote in message news:eI**************@TK2MSFTNGP05.phx.gbl...
"IfThenElse" <sq**********@hotmail.comwrote in message news:%2****************@TK2MSFTNGP04.phx.gbl...

Is there a set up in IIS 6.0 on W2K3 that can automatically switch my users from http to https.
>
I know there are scripts that can be added to do that.
>
But is there a universal setup in IIS to do so. if not will a future IIS provide that func.

Not sure what you're actually asking for, but it sounds like this will do the trick:
http://www.codeproject.com/aspnet/We...id=53615&exp=0

I never use anything else for sites which are part-HTTP and part-HTTPS - it really is a "set it and forget it"
solution...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net





Oct 4 '07 #9

P: n/a
Mark,

Interesting, what do you mean by "set the entire set to HTTPS"??

Thank you,

"Mark Rae [MVP]" <ma**@markNOSPAMrae.netwrote in message
news:O3**************@TK2MSFTNGP02.phx.gbl...
"IfThenElse" <sq**********@hotmail.comwrote in message
news:uP**************@TK2MSFTNGP05.phx.gbl...
>You don't understand. I am switching my site to https. I don't have http
part and an https part.
I want any users that type http://www.mydomain.com to be redirected to
https://www.mydomain.com

So reference WebPageSecurity.dll and set the entire set to HTTPS
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Oct 4 '07 #10

P: n/a
"IfThenElse" <sq**********@hotmail.comwrote in message
news:Oy**************@TK2MSFTNGP06.phx.gbl...
Interesting, what do you mean by "set the entire set to HTTPS"??
Download the utility, read the instructions, and set the entire site to
HTTPS - it's in web.config...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Oct 4 '07 #11

P: n/a
Mark,

Okay did not know you are referring to the link you gave me.
I thought it is part of the framework.

for what I need I will use a script for know.

Never got a straight answer about the IIS GUI.

Thanks again,
"Mark Rae [MVP]" <ma**@markNOSPAMrae.netwrote in message
news:uU**************@TK2MSFTNGP04.phx.gbl...
"IfThenElse" <sq**********@hotmail.comwrote in message
news:Oy**************@TK2MSFTNGP06.phx.gbl...
>Interesting, what do you mean by "set the entire set to HTTPS"??

Download the utility, read the instructions, and set the entire site to
HTTPS - it's in web.config...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Oct 4 '07 #12

This discussion thread is closed

Replies have been disabled for this discussion.