Forum Discussion
Ben_Novak
Employee
May 11, 2009http url append
Similar to the /owa append for outlook anywhere, I would like to append a url when somebody access one of our load balanced websites. Basically when somebody types in http://butters it will append /psp/CRPROD/?cmd=login&languageCd=ENG& to the end of it, making it http://butters/psp/CRPROD/?cmd=login&languageCd=ENG&. I tried to modify the iRule for the owa append but I only get the last half of the url, everything after /psp/CRPROD/. I think it has to do with the slashes. Can someone send me in the right direction or help me out? Thanks.
******original OWA append rule from documentation*****
when HTTP_REQUEST {
if { not ([HTTP::uri] starts_with "/owa") } {
HTTP::uri /owa[HTTP::uri]
}
}
******This is what I have so far******
}
when HTTP_REQUEST {
if { not ([HTTP::uri] starts_with "/psp/CRPROD/?cmd=login&languageCd=ENG") } {
HTTP::uri /psp/CRPROD/?cmd=login&languageCd=ENG[HTTP::uri]
}
}
2 Replies
- The_Bhattman
Nimbostratus
Your logic seems sound.when HTTP_REQUEST { if { [HTTP::uri] eq "/") } { HTTP::uri /psp/CRPROD/?cmd=login&languageCd=ENG[HTTP::uri] } }
- Ben_Novak
Employee
That is exactly what I was looking for. Works great. Thank you very much!
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