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, 2012Okay, do this:
when HTTP_REQUEST {
log local0. "URI = [HTTP::uri]"
if { [HTTP::uri] starts_with "/care/ccso" } {
HTTP::uri "/sites/ccsops/"
}
}
I added a logger line. View that either through the LTM log in the management UI or by tailing the /var/log/ltm file in the shell. I also change the HTTP::uri conditional to "starts_with" instead of "equals" on the hunch that your URI isn't exactly what you're looking for.
Now, do you want the browser to explicitly redirect to the new URI, or do you want the browser's address bar to same the same but still go to this new URI?
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