Forum Discussion
Jim_Betts_47293
Nimbostratus
Mar 25, 2008URL rewrite frustration
Howdy All:
After spending at least 4 hours searching DevCentral and dozens of attempts at trying to code the rules I need some help.
I have a web server (actually a Tumbleweed Secu...
hoolio
Cirrostratus
Apr 02, 2008Hi Jim,
You could make your rule slightly more efficient by using string map instead of a regex command and removing the intermediate variables:
when HTTP_RESPONSE {
if { [HTTP::status] == 302 and $Target_URI starts_with "/messenger"} {
HTTP::header replace Location [string map {http:// https://} [HTTP::header value Location]]
}
}Aaron
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
