...if { not ([URI::basename $uri] contains ".") and not ($uri ends_with "/") } { HTTP::redirect "http://[HTTP::host][HTTP::uri]/"} ...
Thanks , the above statement is very close
The basename is picking the last item of the uri after the last /
For example If I have this case.
http://testdomain.com/ADforms/trial
Basename picks up trial . I need to extract the first value after the domain which is ADforms . If it does not contain a "." or it does not end with a / then do the HTTP redirect, else go to the next statement.