Welcome to this community.
This was taken directly from config file so the anwer was already there:
/***** Example
* PhpDig installed at:
http://www.domain.com/phpdig/
* Want search page at:
http://www.domain.com/search.php
* Copy
http://www.domain.com/phpdig/search.php to
http://www.domain.com/search.php
* Copy
http://www.domain.com/phpdig/clickstats.php to
http://www.domain.com/clickstats.php
* Set $relative_script_path = './phpdig'; in search.php, clickstats.php, and function_phpdig_form.php
* Add ($relative_script_path != "./phpdig") && to if statement
*****/