Forum Discussion
Aj_2549
Nimbostratus
Aug 06, 2009Redirect rewrite Help.
Under profile TAB I do see redirect reqrite enabled for one VIP matching all.IF someone bypass this rewrite for specific Ip what irule so we need to configure .
Thanks
Ajay
- hoolio
Cirrostratus
Hi Ajay,when HTTP_RESPONSE { Check if server response is a redirect and client IP is not 1.1.1.1 if { [HTTP::header is_redirect] and not ([IP::addr [IP::client_addr] equals 1.1.1.1])} { Log original and updated values log local0. "Original Location header value: [HTTP::header value Location],\ updated: [string map -nocase {http:// https://} [HTTP::header value Location]]" Do the update, replacing "http://" with "https://" HTTP::header replace Location [string map -nocase "http:// https://" [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