mikegray_198028
Dec 04, 2015Cirrus
combaine two irules
Help me to combine these two irules.
**1. first irule for pop window**
when HTTP_REQUEST {
if { [HTTP::host] equals "192.168.210.1" and [HTTP::uri] starts_with "/sasi" and ![HTTP::cookie exists "warning"]} {
HTTP::respond 200 content {
Warning
} "Set-Cookie" "warning=1"
}
}
===================================== 2. redirect to another site with redirecting message
when HTTP_REQUEST {
if { [HTTP::host] equals "192.168.210.1" and [HTTP::uri] starts_with "/sasi" and ![HTTP::cookie exists "warning"]} {
set page "
The site has been retired.
After 5 seconds, you will automatically be redirected to our new page at "
HTTP::respond 200 content "${page}" Content-Type "text/html"
}}