Forum Discussion
big_nerd_9769
Nimbostratus
Nov 27, 2012iRule to force usage of Content Distribution [Modify HTML Out]
Hello,
I am still very very new at iRules, so thank you in advance for any help you can give me.
I am attemping to put an iRule in place to force the usage of our content distributio...
nitass
Employee
Nov 27, 2012thanks Steve. 🙂
[root@ve10:Active] config b rule myrule list
rule myrule {
when HTTP_REQUEST {
STREAM::disable
}
when HTTP_RESPONSE {
if { [HTTP::header value Content-Type] contains "text" }{
STREAM::expression {&".*?\.gif&&}
STREAM::enable
}
}
when STREAM_MATCHED {
STREAM::replace [string map {\" \"http://cdn.site.com/} [STREAM::match]]
}
}
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