Forum Discussion
monica_74227
Oct 28, 2009Nimbostratus
how to do HTTP header replace with iRule
Hey guys,
well, the client wants to use special string to replace the http response header's host string. could you help me to check the following iRule or correct it
when HTTP_RESPONS...
monica_74227
Oct 28, 2009Nimbostratus
Hey Aaron,
Thank you for your help! We have finished the iRule, as the following:
when HTTP_RESPONSE {
if { [HTTP::header is_redirect]} {
HTTP::header replace Location [string map -nocase {www.abc.com www.xyz.com} [HTTP::header value Location]]
}
}
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