Forum Discussion
BPRIDE
Nimbostratus
May 03, 2016irule question
I have a HTTPS VIP configured on F5. Looking for iRule
https://f5.com/abc/Pages/default.aspx should redirect to https://f5.com/123/abc/Pages/default.aspx
https://f5.com/abc/* should redirect to...
BPRIDE
Nimbostratus
May 04, 2016Thanks to all. I manage to achieve my redirection using this iRule (Working)
when HTTP_REQUEST { if { [HTTP::host] contains "abc.com" } { if {[string tolower [HTTP::uri]] starts_with "/abc" } { set newuripath [string trimleft [HTTP::uri] /] HTTP::redirect "https://[HTTP::host]/123[HTTP::uri]" } } }
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