Forum Discussion
Sam_Parkes_1110
Dec 04, 2009Nimbostratus
Thanks Aaron,
I've got something working for now:
when HTTP_REQUEST {
if { ([HTTP::uri] starts_with "/landingPage.form") and [HTTP::cookie exists "cookies"] } {
return
}
elseif { [HTTP::uri] starts_with "/landingPage.form" } {
HTTP::respond 301 Location "http://my.domain.com/landingPage.form" Set-Cookie cookies=true
}
}
This is working for now, our developers are working on a permanent solution based on a 2-stage redirect like you suggested, the only problem with this is the looping done if a browser disables cookies, but at least it protects our application layer.
Thanks again.
Sam.