Forum Discussion
Michael_Yates
Oct 15, 2012Nimbostratus
Hi BEdmunds,
Try this:
when HTTP_REQUEST {
if { ([HTTP::uri] starts_with "/path/to/broken") || ([HTTP::uri] starts_with "/other/path/broken") } {
HTTP::redirect "maintenance.html"
Note: Modified URL for forum posting.
}
}
You had a few errors.
I would suggest using the iRule Editor. It will help you with syntax and command options. It is a free tool and is available to download off of the main DevCentral Homepage.
Hope this helps.