Forum Discussion
Ahmad_03_151082
Nimbostratus
Jul 01, 2015redirect URL iRule
Hello
I want to an iRule to redirect
http://anything.com/abc
to
http://something.com/abc
Stanislas_Piro2
Cumulonimbus
Jul 02, 2015This is the iRule solution which do the same as my policy... except...
- policy condition is not case sensitive by default... irule is... we need to use string tolower to compare lowercase strings..
- you specify "contains" in condition, i choose "equals"
When a question is like this one, I think the policies are easier than irules to understand and configure...
Most of my deployments use both irules and policies:
- policies to manage URL-based rules (redirects, pool assignments header replace, define tcl variables to be used by irules executed after) and rules with source IPs conditions (since 11.6)
- irules to manage complexe needs...
The main goal of this is when changing irules, there is a risk of TCL error if something is wrong... so when there is a new need for a specific URL, the administrator can modify the policy easily and safer.
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