Forum Discussion
Albert__Tase_70
Nimbostratus
Apr 27, 2007need help with Irule redirect and persistance
hello I have the following irule applied:
when HTTP_REQUEST {
if { [HTTP::uri] contains "BookStore/SecureCheckOut.do" } {
[HTTP::redirect https://[HTTP::host][HTTP::uri]]
...
hoolio
Cirrostratus
Apr 27, 2007So it looks like you want to redirect clients who make a request to http://170.224.107.69/BookStore/SecureCheckOut.do to the same URL via HTTPS. And it seems like everything works up to the point where the client makes a request to that URL via HTTP?
I think the problem is that you've enclosed the HTTP::redirect command in []'s, so the return value is being executed:
[HTTP::redirect https://[HTTP::host][HTTP::uri]]Can you remove the outer braces and retest?
HTTP::redirect https://[HTTP::host][HTTP::uri]I would expect you'd find an error logged in /var/log/ltm. It is the log file iRule events are logged to by default (/var/log/ltm). You can view it via the GUI under System | Logs | Local Traffic, or by opening the file via the command line (less /var/log/ltm or tail -f /var/log/ltm).
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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