Fixed issue on wild cards containing '?' at the end of the string.
Added 'ignore-referer' option to the configuration file.