Forum Discussion
rogerluo_78747
Apr 19, 2011Nimbostratus
yes, this is what I put in right now:
when HTTP_REQUEST {
if {[HTTP::path] matches_regex "/*"} {
HTTP::redirect "/aaa/bbb[HTTP::uri]"
}
}
I did a packet capture on the VIP and by follow TCP stream, I find this iRule will insert /aaa/bbb with every HTTP request dose not matter it have /aaa/bbb or not. It will just insert /aaa/bbb over and over without stop, so the HTTP GET becomes....
1. GET /aaa/bbb/test.html
2. GET /aaa/bbb/aaa/bbb/test.html
3. GET /aaa/bbb/aaa/bbb/aaa/bbb/test.html
............
............
n. GET /aaa/bbb/aaa/bbb/...................................../aaa/bbb/aaa/bbb/test.html
Is there anything I can do in this iRule to make it insert only once?
Thanks
Roger