Posted By hoolio on 02/11/2011 02:51 PM
I haven't read through the iRule fully enough to understand all of the logic. But I think the immediate cause of the runtime TCL error is that $friendlyURL is null. It looks like this would happen if the URI was just forward slashes (one or more), as those are getting removed when saving the $friendlyURL variable here:
Strip slashes from URI to allow easy queries
set friendlyURL [string map {/ ""} [HTTP::uri]]
Aaron
Hi Aaron,
I added a check if its root url only then I strip the /'s else I leave them alone.
Strip slashes from URI to allow easy queries if its no root level
if { not ([HTTP::uri] equals "/" ) } {
set friendlyURL [string map {/ ""} [HTTP::uri]]
}
set friendlyURL [HTTP::uri]
This seems to be working. No errors in the logs I will request the developers to do load testing on this app.
The next question I have is regarding url classifications... I have created a data group called
trackingurls in this data group I have a few URI's that I want to categorize stats by...
on the stats page I do not see any stats based on the url's all 0's any thoughts?
Thanks,
Jay