Forum Discussion
gh0std0g_79292
Nimbostratus
Feb 26, 2012http 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
Nimbostratus
Feb 29, 2012Location, 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]]
}
}
}
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