My apologies if this has been asked already. I've searched the forums and google and I see things that seem in the vicinity, but don't quite show what I'm seeing.
I have a test environment set up on a virtual server, which is a clone of the production server. The test clone has its own subdomain so I can do what I need to do to roll out the next version without impacting the production.
Here's my problem and it seems like a pretty straigtforward issue. When I click the login link, it takes me back to the production site's login page and everything from there is on the production site.
The test clone lifted the entire production environment, database included, to produce the test environment. I initially thought it was a matter of removing the portal aliases that pointed it to production, but after removing all the PortalAlias records except the one that points at the test subdomain, the log-in link still redirects to production. I tried copying the link on the log-in link and pasting it to the address bar and manually replacing the URL to production with the URL to test, but it still ends up on the production site.
I figure there's another place in the database, in addition to PortalAlias, where this information is coming from when the framework builds the log-in link, but I'll be jiggered if I can figure out where. Any help on this would be most appreciated. Thanks.