Forum Discussion
Kanghis_23583
Nimbostratus
Feb 10, 2009http to https redirect
This is a fairly common task: a shopping cart application requires us to secure the transaction. Without the big-ip in place, the flow redirects any request to http:/this.domain.com/this/directory t...
L4L7_53191
Nimbostratus
Feb 11, 2009I may be missing something, but I believe that HTTP::uri will work for you: it represents everything after the hostname. From the docs, for this request:
http://www.example.com:8080/main/index.jsp?user=test&login=check
HTTP::uri should return:
/main/index.jsp?user=test&login=check
...Note that you're snagging everything, including the bits after the "?". Check out the wiki and the examples here: http://devcentral.f5.com/wiki/default.aspx/iRules/HTTP__uri.html
I believe that the stanza:
HTTP::redirect https://[HTTP::host][HTTP::uri] Should work for you, or get you darn close.
-Matt
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