Forum Discussion
Goran_Blomquis1
Nimbostratus
May 29, 2008rewrite host in redirect
Hi Devcentral and all users.
I have a case where I need to rewrite host in 302 redirect. It´s work fine but theres a lot of hosts behind the F5 and they need to keep hostname intact (no...
Goran_Blomquis1
Nimbostratus
Oct 15, 2009Thanks for all help.
Works perfect! final I-rule looks somthing like
rule rewrite_301_test {
when HTTP_RESPONSE {
if {[HTTP::is_redirect]}{HTTP::header replace Location [regsub -nocase {\/\/.*?/}
[HTTP::header Location] "f5vip.test.local/"]
}
}
Have a great day
Goran
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