Reputation: 983
I have WordPress Blog. Recently I have changed my hosting. So I downloaded all my blog files from old server with filezilla. On new server I made directory blog & under that I uploaded all files. I made new database on new server exactly as same as old one and uploaded that. Now my blog is active properly on my new hosting but whenever I try to login www.sitename.in/blog/wp-admin then it redirects me to the old domain i.e www.sitename.com/blog/wp-admin . How can I change this? My old hosting will expire soon & soon on old domain as well. How can I completely switch over to my new server?
Upvotes: 0
Views: 334
Reputation: 2192
Open your database and change the URL of wp-option check screenshot
http://awesomescreenshot.com/0d160xve67 If not work then open your database with notpad ++ editor then find your blog url something like "localhost/example"
In notpad++ ctrl+f and click to replace tab in first tab put your blog url something localhost/example in 2nd tab put your orginal website url something like example.com
now hit the replace all tab from right side then ctrl+s . make zip and reinstall your database it will fix all url like images , admin, site and pages sulgs etc hope it will work
Upvotes: 1
Reputation: 631
Verify, if you have followed below steps carefully.You might have missed 5th step
Upvotes: 1
Reputation: 20584
According to this step 4
Log in to the site you want to move and go to Settings > General, then change the URLs. (ie from http://example.com/ to http://example.net ) - save the settings and expect to see a 404 page.
Upvotes: 1