Forum Discussion
gh0std0g_79292
Feb 26, 2012Nimbostratus
http response - change location
i'm sure this is straightforward, but i'm brand new to f5... users on the internet will go to external.domain.com my iRule has a header replacement statement to replace it with...
Wil_Schultz_101
Feb 29, 2012Nimbostratus
Location, so you're talking about 301 or 302 responses only? Or do you need to actually change body content?
If it's just the redirects this should work, or something close to it anyway.
when HTTP_RESPONSE {
switch -glob [HTTP::status] {
"30*" {
HTTP::header replace Location [string map -nocase {internal.domain.com external.domain.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