Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

So long story short, someone told me about BACKUPBUDDY and how good it is, etc, and it is...now long story short, one of my clients, wants to move their site from FATCOW to HOSTGATOR.

I went in, created the backup with BACKUPBUDDY on the old site(fat cow), then went to the new site and migrated the info.(into hostgator)

now obviously for testing and other edits they want made,etc i log into the server or view the new site on the browser with their IP address.(host gator the new one)...and i havent pointed the domains to new site yet....

now that said, i noticed that when i use for example, "ip address / wp-login.php" it logs me in but then when i look up in the address bar, it says the FATCOW(old server) name/domain instead of the IP.

so instead of seeing "ip addy /wplogin " i see " full name of site/wp-login "

So my quesiton is , whats happening? if i cant fix this, i cant really test to make sure all is okay b4 pointing the nameservers.

Any ideas as to whats going on? im a bit of a WP noob so...

Thanks in advanced.

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

The database still has the domain as the URL to use so it will always redirect you to the old server.

The best solution is to change your hosts file.

123.456.789.0     yourdomain.com

By using the NEW IP address you are forcing your computer to use the new server when going to yourdomain.com. That way you can login and do everything, making sure all is perfect before switching DNS.

share|improve this answer
    
but i coulda swore that backup buddy auto changed all that when migrating? –  somdow Apr 13 '12 at 16:19
    
I don't know the specifics of how their migrations work, but even still changing your hosts file is the best way to test your site using its real domain while keeping it private. –  developdaly Apr 13 '12 at 16:20
    
hmm ok, so let me ask you this. as far as "change my hosts file" how would i do that? only hosts file i know of is windows hosts files lol...im sure thats noot it lol. Thanks –  somdow Apr 13 '12 at 18:27
    
That's EXACTLY it. Probably at C:\Windows\System32\drivers\etc\hosts –  developdaly Apr 13 '12 at 18:54
    
Hey Developdaly, ok so what exactly am i looking for? my addy i use with wamp is 127.0.0.1 and there are a bunch of entries in there...what is it i want to change? thanks in advanced –  somdow Apr 15 '12 at 2:07
show 1 more comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.