dexter_22020
Apr 09, 2009Nimbostratus
url rewrite with class
Hi,
Newbie on irules here, need help.
class file contains:
/test http://domain.com/main.html
/foo http://domain.com/foo.html
...
...
and so on..
I need an irule that will rewrite anything that starts with /test, /foo, etc.. (left column) to what's equivalent on the right column.
I tried this but I have no idea what's next...
when HTTP_REQUEST {
if { [matchclass [string tolower [HTTP::uri]] starts_with $::test_class] {don't know}
}
Thanks for any info.