WordPress主机和域迁移 [英] Wordpress Host and Domain Migration

查看:116
本文介绍了WordPress主机和域迁移的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将Wordpress博客从Hostgator迁移/迁移到IPage,但是此过程存在很多问题,在此过程中,我已经更改了域.
这是我到目前为止所做的

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.)在删除旧的wordpress之后,在iPage上安装了new wordpress.
2.)将除wp-config文件之外的所有文件从Hostgator转移并替换到IPage.
3.)将所有数据库表放在IPage上,然后从Hostgator上传数据库.
4.)我将siteurl的wp_option更改为我的新域.

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.

当我转到URL时,它只是重定向到Wordpress安装页面.我不知道这是怎么回事,将我的头撞了6个小时.我在Stackoverflow上阅读了所有其他类似的问题,但无法弄清楚.注意:我是新手,所以请像我三岁的孩子一样向我解释.谢谢!

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!

推荐答案

我最近将wordpress网站转移到了新服务器上,因此我将在此描述整个过程,如果您需要只做域更改.

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.

首先,您压缩整个站点,然后将根文件夹压缩为wp-config.然后,将其移至新站点.如有可能,您可以在phpMyAdmin中备份您的旧库,然后在新页面的cpanel中创建新库并导入旧库.

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.

您更改wp-config信息,使其与新的基础(基础名称,用户名,密码和身份验证密钥)相对应.接下来,您可以下载这个小巧的脚本链接此处.

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.

您将其提取到文件夹sr.将该文件夹上载到新站点的根目录中.现在,您可以转到www.newsite.com/sr文件夹,只需搜索没有http://或www的旧站点地址,因此搜索oldsite.com并将其替换为newsite.com.然后,您可以进行空运行以查看将替换表中的哪些行,如果一切正常,请进行实时运行.

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.

最好禁用大多数插件.我有用于将/wp-admin登录更改为其他链接的插件(出于安全原因),但这也意味着我无法登录,因此我不得不删除该插件,并且一切正常.

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.

希望这会有所帮助

这篇关于WordPress主机和域迁移的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆