Sergej
Wed Aug 30 08:28:50 CDT 2006
I was experiencing the very same problem with our site at
www.waynesavings.com. We are forcing the entire site into https via a
custom 403.4 error. If you request a non-existing page on http, you get
redirected to the secure home page (which is also true for ANY http
page you request which is not the home page). The custom 404 gets
called alright for https, but not for http.
The only explanation I have is that the 403 kicks in before the 404
does, but I am not sure how to change that.
Alex Broide wrote:
> I have set custom error handling to web.config so it works for aspx files,
> but it doesn't work for htm.
>
> https://www.air-aroma.com/fake.aspx - OK
>
> https://www.air-aroma.com/fake.htm - NOT OK
>
> "Bernard Cheah [MVP]" wrote:
>
> > Problem fixed? I test browse your site and it is redirecting correctly.
> >
> > --
> > Regards,
> > Bernard Cheah
> >
http://www.iis.net/
> >
http://www.iis-resources.com/
> >
http://msmvps.com/blogs/bernard/
> >
> >
> > "Alex Broide" <AlexBroide@discussions.microsoft.com> wrote in message
> > news:65EEC5DE-8995-4796-A361-E0B87FDFE83C@microsoft.com...
> > > Yes, it works ok.
> > >
> > > You can see it here 'https://www.air-aroma.com
> > >
> > > The redirect code is
> > > <script language="javascript">
> > >
> > > window.navigate('https://www.air-aroma.com/default.aspx');
> > >
> > > </script>
> > >
> > >
> > > "Bernard Cheah [MVP]" wrote:
> > >
> > >> No idea. but does normal https work ?
> > >> post the simple redirect code here. I try to test it on my xp.
> > >>
> > >>
> > >> --
> > >> Regards,
> > >> Bernard Cheah
> > >>
http://www.iis.net/
> > >>
http://www.iis-resources.com/
> > >>
http://msmvps.com/blogs/bernard/
> > >>
> > >>
> > >> "Alex Broide" <AlexBroide@discussions.microsoft.com> wrote in message
> > >> news:5A6E6B60-0929-4B7F-BBFA-B592FE3069B6@microsoft.com...
> > >> > Hi Bernard
> > >> >
> > >> > Thanks for having a look.
> > >> >
> > >> > I can not set the redirection to a URL using the control panel of our
> > >> > hosting provider, so i created a simple file which redirects user using
> > >> > window.navigate
> > >> > Don't know if it's relevant, but one thing i forgot to mention is that
> > >> > website does have a certificate, so HTTPS is enabled.
> > >> >
> > >> > Alex
> > >> >
> > >> > "Bernard Cheah [MVP]" wrote:
> > >> >
> > >> >> How do you configure the custom error redirection?
> > >> >> I setup it to redirect to a test page at root. it works for both http
> > >> >> and
> > >> >> https
> > >> >>
> > >> >> Type is URL
> > >> >> url = /test.html
> > >> >>
> > >> >>
> > >> >> --
> > >> >> Regards,
> > >> >> Bernard Cheah
> > >> >>
http://www.iis.net/
> > >> >>
http://www.iis-resources.com/
> > >> >>
http://msmvps.com/blogs/bernard/
> > >> >>
> > >> >>
> > >> >> "Alex Broide" <AlexBroide@discussions.microsoft.com> wrote in message
> > >> >> news:9E81AD70-A152-41C1-8D11-B895C932DF9C@microsoft.com...
> > >> >> >I created a custom error page which redirects user to a home page if
> > >> >> >they
> > >> >> > typed in the wrong address(404 error). It works ok with HTTP
> > >> >> > protocol,
> > >> >> > but
> > >> >> > fails to work with HTTPS.
> > >> >> > For example if you type
http://www.somesite.com/fake.htm you get
> > >> >> > redirected
> > >> >> > to home page. If you type https://www.somesite.com/fake.htm , the
> > >> >> > 404
> > >> >> > error
> > >> >> > page is displayed.
> > >> >> >
> > >> >> > Can someone explain to me why custom error page works for HTTP and
> > >> >> > doesn't
> > >> >> > work for HTTPS? And is there a solution?
> > >> >>
> > >> >>
> > >> >>
> > >>
> > >>
> > >>
> >
> >
> >