简体   繁体   English

将我的Wordpress网站移至主要域会导致一些错误

[英]Moving my wordpress site to main domain caused some errors

I am new to wordpress and hosting, so I just thought I could move my WordPress site (files) from the subdomain to the main domain and everything will work. 我是wordpress和托管的新手,所以我只是想可以将WordPress网站(文件)从子域移到主域,并且一切正常。 It worked actually except for the URL in the main domain changed to show the URL for the subdomain. 它实际上可以正常工作,只是将主域中的URL更改为显示子域的URL。 (Later I found out I could change the URL's in the settings. (后来我发现可以更改设置中的网址。

So I followed this tutorial ( http://www.wpbeginner.com/plugins/how-to-update-urls-when-moving-your-wordpress-site/ )to fix the problem and used the plugin "Velvet blue Update URL" to update the URL's but then everything got messed. 因此,我遵循了本教程( http://www.wpbeginner.com/plugins/how-to-update-urls-when-moving-your-wordpress-site/ )来解决此问题,并使用了插件“天鹅绒蓝色更新URL” ”来更新网址,但随后一切混乱。 And the site both in the main domain and test domain does not show appropriate links. 并且主域和测试域中的站点均未显示适当的链接。 And the slides keeps loading. 幻灯片会不断加载。

Also in the main domain I cant access my theme options (using Avada theme). 同样在主域中,我无法访问主题选项(使用Avada主题)。

I deactivated all plugins to check if a plugin was causing these errors, I saw some changes when uninstalling the polylang plugin. 我停用了所有插件以检查某个插件是否引起了这些错误,在卸载polylang插件时我看到了一些变化。 But I have to keep it because I have my site in two different languages. 但是我必须保留它,因为我的网站使用两种不同的语言。 (Actually when deactivating the polylang plugin my subdomain shows the site with almost no errors) (实际上,当停用polylang插件时,我的子域显示的站点几乎没有错误)

What can I do to save myself from all this mess? 我该怎么做才能使自己免于所有麻烦呢?

To save yourself all the hassle of updating URLs use this plugin. 为了节省您所有更新URL的麻烦,请使用此插件。

https://wordpress.org/plugins/duplicator/ https://wordpress.org/plugins/duplicator/

It will create a duplicate of your site and then automatically update all old URLs to the new structure you migrate to. 它将创建您站点的副本,然后自动将所有旧URL更新为您要迁移到的新结构。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM