Forum Discussion
Stanislas_Piro2
Sep 09, 2016Cumulonimbus
Hi,
you can open a support case for this.
but in your code, I do not see why you need externalpath.
and, when using matchvar in tcl, the value is a list of match. the first match is :
[lindex $externalpath 1]
instead of matchvar, you can use:
regsub -nocase "/extpath/" [HTTP::path] $internalpath newuri
HTTP::uri $newuri
another thing. ".*$" does not make sense. it search any character from match string to the end of the uri.
you should set regex : {^(/extpath/)} instead of {^(/extpath/).*$}