Forum Discussion
Dachicourt_Fabi
Nimbostratus
Jan 07, 2005Using format strings in version 9
the string %h %p et %u don't work on version 9
for exemple, a rule like
rule my_rule {
if ([HTTP::uri] ends_with "baz") {
redirect to "https://%h:8080/%u/" ...
drteeth_127330
Feb 21, 2005Historic F5 Account
The URI commands can be used to extract individual field components from a URI. For example,
[URI::query [HTTP::uri]]
should be equivalent to [HTTP::query]
However, the protocol, host, and port commands are only meaningful when used with a full URI, e.g. http://www.foo.com/bar.html. This is the problem that you encountered. 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