%SCRIPTURL{"script"}%
http://wiki.gsiempre.com/bin/script
%SCRIPTURL{"viewauth"}%/%WEB%/%TOPIC% which expands to http://wiki.gsiempre.com/bin/viewauth/TWiki/VarSCRIPTURL2
%SCRIPTURLPATH{"script"}% instead, as it works with URL rewriting much better