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 / ...
Aaron_Magruder_
Nimbostratus
Mar 31, 2005Neither of those options worked. The LTM didn't send the redirect.
when HTTP_REQUEST {
set uri { string trimleft [http::uri] "/" }
set uri_length { string length [http::uri] }
set host [HTTP::host]
set new_uri /Templates/IQuote010.cfm?ID=
set new_url $host$new_uri$uri
if { [string length http::uri] equals 5 } {
HTTP::redirect http://$new_url
}
else {
use pool UITShared-172-29-98-77
}
}
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
