Forum Discussion
Aaron_Magruder_
Nimbostratus
Mar 30, 2005Removing / inserted by iRule variable
Is there a way to prevent the / from being inserted when using variables? The following iRule works to redirect users from /29900 to /Templates/IQuote010.cfm?ID=/29900. I need a way to remove the / ...
JRahm
Admin
Mar 31, 2005In this line:
if { [string length http::uri] equals 5 }
The unformatted uri still has the / in it, are you including that in the 5 characters, or should it be 6 with the /. Otherwise, you could use the $uri variable. Add some logging for debugging purposes that shows you the output of the string manipulations, such as
set uri_length { string length [HTTP::uri] }
set uri__formatted_length { string length $uri }
log " URI is [HTTP::uri] "
log " URI formatted is $uri "
log " URI lenght is $uri_length "
log " URI formatted length is $uri_formatted_length "
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