Sorry if this sounds confusing this is what happened:
I was working on a Magento version on this server, and thought the guy was going to transfer the domain name to point back here. So I went to configuration and changed the base url and the base secure url to the new domain.
I found out the domain isn't ready until Monday! So I went to myPHPadmin and went into core_config_data and changed the url back to the old one so I can continue working on it
Problem is now the site keeps forwarding to the new domain! I checked my core config data and its pointing to my old domain... I even did a database restore and same problem!
What file am I missing to edit?