Wordpress Host and Domain Migration

那年仲夏 提交于 2019-12-25 03:39:34

问题


I am moving/migrating a Wordpress Blog from Hostgator to IPage but having a lot of problems with this process, in the process I have changed the domain.
This is what I’ve done so far

1.) Installed a Fresh wordpress on IPage after removing the old one.
2.) Transfer and replaced all the files from Hostgator to IPage, except the wp-config file.
3.) Drop all the Database table on IPage, and then upload the database from Hostgator.
4.) I changed the siteurl are the wp_option to my new domain.

At the moment when I go to the URL it just redirects to Wordpress installation page. I have no idea what is going on, been banging my head at it for 6 hours. I read all the other similar issues on Stackoverflow but can’t figure it out. Note: I am a newb, so please explain it to me as if I was a 3 year old kid. Thanks!


回答1:


I transfered a wordpress site recently to a new server so I'll describe the whole process here, I think you'd need just one step here if you're only making domain change.


First you zip your whole site, so the root folder with wp-config. Then you move it to your new site. You backup your old base in phpMyAdmin if possible, then in the cpanel of the new page you create new base and import the old one in.

It's important that during this process you DO NOT OPEN THE NEW SITE IN BROWSER!!! Otherwise you'll have issues with links etc.

You change your wp-config info so that it corresponds to the new base (base name, username, pass and auth keyes). Next you download this little cool script link here.

You'll extract it to folder sr. Upload that folder in the root of your new site. Now you can go to www.newsite.com/sr folder, and just search old site address without http:// or www, so search oldsite.com and replace it with newsite.com. You can then do dry run to see what lines in your tables will be replaced, and if all is ok, just do live run.

Then all your tables should be connected with new site link. Also after that go to permalink settings, and just change options a bit, that wil 'restart' permalinks to new site, and you should be ok.

Also it's better to have most of the plugins disabled. I had plugin that changed the /wp-admin for login to some other link (security reasons), but that also meant that I couldn't log in, so I had to delete that plugin, and all worked well.


Now, if you're just replacing the domain, I think you should only do the part with search and replace, and then check the permalinks as described.

Hope this helps



来源:https://stackoverflow.com/questions/24337620/wordpress-host-and-domain-migration

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!