Edit the relevant entry in KeePass, click on the Kee tab, and under that the URLs tab. Change the minimum URL match accuracy to Hostname or Exact, whichever best suits your needs for any given site. That should accomplish what I think you’re asking.