cgi: compare the physical path instead of the url to detect quirky urls