Rev server: going to another .irev page from script

Andre Garzia andre at
Sat Feb 12 09:26:04 EST 2011


Use this:

on redirect pLocation, pCode
        if pCode is empty then put "301" into pCode

        put header "Status:" && pCode # <-- Apache needs that, so I've learned
        put header "Location:" && pLocation
        put "redirecting"
end redirect

call it like:

redirect ""

(this snippet is from RevSpark minimal framework, )


On Fri, Feb 11, 2011 at 11:46 PM, Sarah Reichelt
<sarah.reichelt at> wrote:
> On Sat, Feb 12, 2011 at 7:57 AM, stephen barncard
> <stephenREVOLUTION2 at> wrote:
>> I'm sure there's a way to do this but I can't seem to find it.
>> I have a user password script that then is supposed to 'go' to another html
>> page but the only way I can get it to work is to use an intermediate file
>> (gosite.html) which has a cheesy html redirect command : CONTENT="0;URL=
>> I can't figure out what to use to go to another irev page directly.
> You can use "put header" or "put new header" - I use "put new header"
> but I'm not sure if that is strictly necessary.
> Here is a script example:
> <>
> The only trick is that this must come before any other data is "put"
> on to the web page.
> Cheers,
> Sarah
> _______________________________________________
> use-livecode mailing list
> use-livecode at
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

-- All We Do Is Code.

More information about the Use-livecode mailing list