A typical URL to a Wiki is http://www.example.com/cgi-bin/wiki.pl, and in that case $ScriptName is assigned the value 'wiki.pl'.
DirectoryIndex cgi-bin/wiki.pl index.htmlDoing so will allow me to run the script through the URL http://www.example.com/.
$ScriptName = pop(@ScriptPath);is exchanged for
$ScriptName ||= pop(@ScriptPath);I can simply say
$ScriptName = '/';in the config file (or in a wrapper script), and the shorter URL http://www.example.com/ will work just fine.
Another thing is that the variable name then ought to be $ScriptURL rather than $ScriptName... --GunnarH
I vaguely remember to ran into something similar when adopting usemod (or maybe oddmuse) to work with url rewrite a few years ago. Your entry in .htaccess looks a bit strange to me. -- MarkusLude