Forum Discussion
Bob_10976
Nimbostratus
Sep 08, 2010Append to or Rewrite URI
Hello all...
We have launched ADFS in our network and we'd like to setup an iRule so that when a user goes to the website, mydomain.com, that an iRule either appends or rewrites the URI so that th...
hoolio
Cirrostratus
Sep 20, 2010Hi Bob,
A few tips:
- You can use parenthesis to perform a negation on this line. You can also check just the query string instead of the full URI using HTTP::query. And if you're setting one string to lower case you should set the string you're checking for to lower case as well.
Original:
if {not [string tolower [HTTP::uri]] contains "whr=urn:federation:Realm"}{
Updated:
if {not ([string tolower [HTTP::query]] contains "whr=urn:federation:realm")}{
To append something to the URI, you can use:
HTTP::uri "[HTTP::uri]?whr=urn:federation:Realm"
Aaron
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
