简体   繁体   English

WordPress多站点URL更改-找不到wp-admin

[英]Wordpress Multisite URL change - wp-admin not found

I changed the URL of my Wordpress page. 我更改了Wordpress页面的URL。 It's a multisite network. 这是一个多站点网络。 I did most of the changes on the database. 我对数据库进行了大部分更改。

These tables were affected: 这些表受到影响:

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.

Now when I try to access the admin panel with the new domain newdomain.subdomain.com/wp-admin/ I get the error: **Not Found The requested URL /wp-admin/ was not found on this server.** 现在,当我尝试使用新域newdomain.subdomain.com/wp-admin/访问管理面板时,出现错误消息: **Not Found The requested URL /wp-admin/ was not found on this server.** newdomain.subdomain.com/wp-admin/

What is still missing? 还缺少什么?

Make sure the new domain is pointing to the same folder as the old domain. 确保新域指向与旧域相同的文件夹。 I had a situation like this where the new domain was not pointing to the same server as the old domain, and after fixing that. 我遇到过这样的情况,即新域不指向旧域时指向同一台服务器,并且在修复之后。 I usually put an html file in the root to make sure that I can call it from both the old and the new domains, before updating the WordPress site URL. 我通常会在根目录中放置一个html文件,以确保在更新WordPress网站URL之前可以从旧域和新域中调用它。

Also, have a look in your wp-config.php there's a line like this define('DOMAIN_CURRENT_SITE', 'domainname.old'); 另外,在您的wp-config.php有一行这样的define('DOMAIN_CURRENT_SITE', 'domainname.old'); , update it to the correct domain. ,将其更新到正确的域。

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

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