Hard to say what could be going on, but I would scrutinize your login pages for any cross-site login forms that would mess up your URI matching. This is not uncommon - you open a URL to one site but the login form that appears is actually being generated on a different server.