Forum Discussion
Keith_Goguen_52
Apr 06, 2011Nimbostratus
Simple iRule for URL appending?
Hey - was wondering if someone could give me a hand with a pretty basic task... how to append(or redirect) and URL. I have some people comming into a VS for "host.unit.com", but I have to send them to...
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
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects