Thanks to superb help from Lailton (big thank you Master), now mod_harbour CGI supports all these URL formats:
http://localhost/test
http://localhost/test.prg
http://localhost/test?name=fivetech&another=yes&andmuch=more
http://localhost/test.prg?name=fivetech&another=yes&andmuch=more
http://localhost/cgi-bin/modharbour.exe?test.prg
http://localhost/cgi-bin/modharbour.exe?prg=test.prg&name=fivetech&another=yes&andmuch=more
Simply copy modharbour.exe and DLLs from here to your cgi-bin folder:
https://github.com/FiveTechSoft/mod_harbour/tree/master/cgi/windows
Copy .hcaccess to apache/htdocs:
https://github.com/FiveTechSoft/mod_harbour/blob/master/cgi/windows/.htaccess
And use this Apache configuration file:
https://github.com/FiveTechSoft/mod_harbour/blob/master/cgi/windows/httpd.conf
and enjoy the power and robustness of mod_harbour CGI. Rock solid! Watch the video bellow:
https://github.com/FiveTechSoft/screenshots/blob/master/modharbour_cgi.gif?raw=true