Forum Discussion
dcam_21053
Nimbostratus
Sep 17, 2012URL Redirect Not Working
I am not sure why, but can someone look at this redirect irule and tell me what I am doing wrong. It is a seemingly simple thing. I am seeing that the irule is being hit, no errors, and the VIP is ...
Kevin_Stewart
Employee
Sep 17, 2012a URI will always starts with "/". Also assuming "site" is you host name. So:
when HTTP_REQUEST {
if { [HTTP::uri] equals "/care/ccso" } {
HTTP::uri "/sites/ccsops"
}
}
Also remember that HTTP::uri will transparently redirect the URI. The user won't see this in the browser. If you want something more explicit, try HTTP::redirect "http://site/sites/ccsops/".
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