http to https redirection

http to https redirection

am 23.08.2007 12:28:02 von AndreyVasylenko

Hi, guys!

This is my sutiation.
There is one local web site on IIS6 with moss2007 - http://moss2007. When
users connecting to, then they recieve http://moss2007/default.aspx as
default page.
On this site exist possibility connecting to https://moss2007, but default
page opens only if users indicate full path - https://moss2007/default.aspx.
Can I create redirections in IIS , when all links http://moss2007 and
https://moss2007 will be redirecting
to the site https://moss2007/default.aspx by default without any user action?

Big thanks!

Andrey.

Re: http to https redirection

am 24.08.2007 02:43:38 von Bernard

Well, you can configure the http default page to check the url if it's not
https, then forward to https.
or you can configure 403.4 SSL required custom error to redirect
accordingly.

--
Regards,
Bernard Cheah
http://www.iis.net/
http://msmvps.com/blogs/bernard/


"Andrey Vasylenko" wrote in
message news:059F1EC6-846C-4985-98B2-F69BE466BF93@microsoft.com...
> Hi, guys!
>
> This is my sutiation.
> There is one local web site on IIS6 with moss2007 - http://moss2007. When
> users connecting to, then they recieve http://moss2007/default.aspx as
> default page.
> On this site exist possibility connecting to https://moss2007, but default
> page opens only if users indicate full path -
> https://moss2007/default.aspx.
> Can I create redirections in IIS , when all links http://moss2007 and
> https://moss2007 will be redirecting
> to the site https://moss2007/default.aspx by default without any user
> action?
>
> Big thanks!
>
> Andrey.
>

Re: http to https redirection

am 27.08.2007 15:12:01 von AndreyVasylenko

Can you provide me with an example of those configuration?

Thanks!


"Bernard Cheah [MVP]" wrote:

> Well, you can configure the http default page to check the url if it's not
> https, then forward to https.
> or you can configure 403.4 SSL required custom error to redirect
> accordingly.
>
> --
> Regards,
> Bernard Cheah
> http://www.iis.net/
> http://msmvps.com/blogs/bernard/
>
>
> "Andrey Vasylenko" wrote in
> message news:059F1EC6-846C-4985-98B2-F69BE466BF93@microsoft.com...
> > Hi, guys!
> >
> > This is my sutiation.
> > There is one local web site on IIS6 with moss2007 - http://moss2007. When
> > users connecting to, then they recieve http://moss2007/default.aspx as
> > default page.
> > On this site exist possibility connecting to https://moss2007, but default
> > page opens only if users indicate full path -
> > https://moss2007/default.aspx.
> > Can I create redirections in IIS , when all links http://moss2007 and
> > https://moss2007 will be redirecting
> > to the site https://moss2007/default.aspx by default without any user
> > action?
> >
> > Big thanks!
> >
> > Andrey.
> >
>
>
>

Re: http to https redirection

am 27.08.2007 22:41:27 von .._..

<%
If Request.ServerVariables("SERVER_PORT")=80 Then
Dim strSecureURL
strSecureURL = "https://"
strSecureURL = strSecureURL & Request.ServerVariables("SERVER_NAME")
strSecureURL = strSecureURL & Request.ServerVariables("URL")
Response.Redirect strSecureURL
End If
%>

Paste at top, rename to .asp.

You can add the server name and make it go to the home page by adding on the
third line there, and removing the two request server variable parts.

There are lots of ways to do this, depending on the specifics of what you
are doing some methods may be better than others. (The error page redirect
may not work with other redirects, and neither of these work for images or
file downloads.)

"Andrey Vasylenko" wrote in
message news:E2F5A231-323C-4448-937C-D525FE1695A0@microsoft.com...
> Can you provide me with an example of those configuration?
>
> Thanks!
>
>
> "Bernard Cheah [MVP]" wrote:
>
>> Well, you can configure the http default page to check the url if it's
>> not
>> https, then forward to https.
>> or you can configure 403.4 SSL required custom error to redirect
>> accordingly.
>>
>> --
>> Regards,
>> Bernard Cheah
>> http://www.iis.net/
>> http://msmvps.com/blogs/bernard/
>>
>>
>> "Andrey Vasylenko" wrote in
>> message news:059F1EC6-846C-4985-98B2-F69BE466BF93@microsoft.com...
>> > Hi, guys!
>> >
>> > This is my sutiation.
>> > There is one local web site on IIS6 with moss2007 - http://moss2007.
>> > When
>> > users connecting to, then they recieve http://moss2007/default.aspx as
>> > default page.
>> > On this site exist possibility connecting to https://moss2007, but
>> > default
>> > page opens only if users indicate full path -
>> > https://moss2007/default.aspx.
>> > Can I create redirections in IIS , when all links http://moss2007 and
>> > https://moss2007 will be redirecting
>> > to the site https://moss2007/default.aspx by default without any user
>> > action?
>> >
>> > Big thanks!
>> >
>> > Andrey.
>> >
>>
>>
>>