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, 2005I think that can be chopped down:
when HTTP_REQUEST {
set uri { string trimleft [http::uri] "/" }
set url [HTTP::host]/Templates/IQuote010.cfm?ID=
if { string length $uri = 5 } {
HTTP::redirect http://$url$uri
log "Redirecting [IP::client_addr] to http://$url$uri"
}
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