Forum Discussion
fcicala_29180
Nimbostratus
Jan 14, 2010http to https redirect with exceptions
Hello I am very new to iRules and just inherited a farm of 9.x F5.
I see that my predecessor is performing this task using the following iRule:
when HTTP_RESPONSE {
...
The_Bhattman
Nimbostratus
Jan 14, 2010Then you should be able to do the following
when HTTP_RESPONSE {
if { [HTTP::header Content-Type] starts_with "text/" }{
STREAM::expression "@http:\\somedomain.com\word@https:\\someotherdomain.com\word@"
STREAM::enable
} else {
STREAM::disable
}
}
Bhattman
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