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/" ...
Brian_Gupta_115
Nimbostratus
Feb 21, 2005Joe,
Based on the doc you listed, I constructed the following rule:
when HTTP_REQUEST {
redirect to "https://[URI::host][HTTP::uri]"
}
That gave me a syntax error. I played around and came up with this:
when HTTP_REQUEST {
redirect to "https://[HTTP::host][HTTP::uri]"
}
Are the URI::xxx commands listed valid? Or am I just using them incorrectly?
Thanks,
Brian
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