我更改了Wordpress页面的URL。这是一个多站点网络。我对数据库进行了大部分更改。
这些表受到影响:
wp_options: options named “siteurl” and “home”
wp_site
wp_sitemeta: the option named “siteurl”
wp_blogs: any entries in the “domains” column that have the old domain name
wp_#_options: Each sub-site will have sets of tables that correspond to the blog_id in the wp_blogs table. You need to go to the wp_#_options table, where # corresponds to the blog_id, and update the “siteurl” and “home” settings in that table.
现在,当我尝试使用新域访问管理面板时newdomain.subdomain.com/wp-admin/
出现错误:**Not Found The requested URL /wp-admin/ was not found on this server.**
还缺少什么?
确保新域指向与旧域相同的文件夹。我遇到过这样的情况,新域没有指向与旧域相同的服务器,并且在修复后。我通常会在根目录中放置一个html文件,以确保在更新WordPress站点URL之前,我可以从旧域和新域调用它。
另外,请查看您的wp-config.php
有这样一行define('DOMAIN_CURRENT_SITE', 'domainname.old');
,将其更新到正确的域。