LiveCodeServer: redirecting with 'put header'

Andre Garzia andre at andregarzia.com
Thu Dec 8 15:08:34 EST 2011


Matthias,

I have no answer for that but I noticed that redirections with 301 with
RevServer just work if you output some content as well, any content. I
usually go with "redirecting..." or with a link to where I am redirecting
them.

=)

On Thu, Dec 8, 2011 at 1:50 PM, Matthias Rebbe <
matthias_livecode_150811 at m-r-d.de> wrote:

> Hi Andre.
>
> while answering to the other replies i oversaw your one..
> Tried it now out. It works ! ! !
>
> But why do i have to put the "redirecting…"?
>
> Is this an on-rev specific thing or is this additional put also needed
> when using LiveCodeServer on
> other systems? If the 2nd, then RunRev would do right to put that
> information into the ReleaseNotes.
>
> Anyway, it works. Thank you very much.
>
> Regards,
>
> Matthias
>
>
> Am 08.12.2011 um 16:26 schrieb Andre Garzia:
>
> > Matthias,
> >
> > This will sound crazy ok... but try the script with an extra put with
> > content, like this:
> >
> >>
> >> <?lc
> >> put "http://www.google.com" into tURL
> >> put  header "Status: 301"
> >> put header "Location:" && tURL
> >>
> >   put "redirecting..."
> >
> >> ?>
> >
> >
> > And tell me if it works.
> >
> > --
> > http://www.andregarzia.com -- All We Do Is Code.
> > http://fon.nu -- minimalist url shortening service.
> > _______________________________________________
> > use-livecode mailing list
> > use-livecode at lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



-- 
http://www.andregarzia.com -- All We Do Is Code.
http://fon.nu -- minimalist url shortening service.



More information about the Use-livecode mailing list