Forum Discussion
Gill_32697
Nimbostratus
Sep 06, 2013iRules and Post redirects.
So let me ask this iRule question. My I rules works internaly with Gets no problem. But when a request is made to the VIP from another Server, the redirects do not work. I get a Page Cant Be Displaye...
Gill_32697
Nimbostratus
Sep 09, 2013textwhen HTTP_REQUEST { log local0. "HTTP::uri is [HTTP::uri]"
if { ([string tolower [HTTP::host]]) contains "b-unitynet.swbc.com" } { switch -glob -- [string tolower [HTTP::uri]] {
"*meridianlinkws.asmx*" { HTTP::respond 307 Location "https://b-webservices.swbc.com/Unity[HTTP::uri]" }
"*unityweblet.asmx*" { HTTP::redirect "https://b-webservices.swbc.com/Unity/Weblet.asmx" }
"*weblet.asmx*" { HTTP::respond 307 Location "https://b-webservices.swbc.com/Unity/Weblet.asmx" }
"weblet.asmx" { HTTP::redirect "https://b-webservices.swbc.com/Unity/Weblet.asmx" }
} log local0. "HTTP::uri is [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