Actually, with the code below, I get a 404 error. Likely because it is
returning:
https://mrteeny.local/http://mrteeny.local
Is there a way to redirect the entire url? I'm probably missing something
basic.
Mcihael Check
On Sun, Mar 16, 2008 at 3:33 PM, Michael Check <[EMAIL PROTECTED]>
wrote:
> Not sure I understand how to do that. I can see the '*host' and the
> '*secure' keys in the request info collection, but I have to return the path
> portion of the url, not the protocol. If I try to return the full uri, I
> get an internal server error: 500
> Can I redirect (return) a secure request to a non-secure URI?
>
> method "On Request"($inURL; $inQuery)
> if (get request info("*secure") = "1")
> if (get request info("*host") = "mrteeny.local")
> $host:=get request info("*host")
> $url := "http://mrteeny.local"
> return($url)
> else
> return
> end if
> else
> return
> end if
> end method
>
>
>
>
> On Fri, Mar 14, 2008 at 7:16 PM, Aparajita Fishman <
> [EMAIL PROTECTED]> wrote:
>
> > > Trying to catch https and redirect to http
> >
> > You could do it in the On Request handler.
> >
> > Regards,
> >
> > Aparajita
> > www.aparajitaworld.com
> >
> > "If you dare to fail, you are bound to succeed."
> > - Sri Chinmoy | www.srichinmoy.org
> >
> >
> > _______________________________________________
> > Active4D-dev mailing list
> > [email protected]
> > http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
> > Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/
> >
>
>
>
> --
> Thanks,
>
> Michael Check
>
--
Thanks,
Michael Check
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/