Wordpress MU,无法访问/wp-admin [英] Wordpress MU, can't access /wp-admin

查看:30
本文介绍了Wordpress MU,无法访问/wp-admin的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用 WordPress MU 域映射插件设置了具有两个域的 MU 安装.

I've set up a MU install with two domains, using the WordPress MU Domain Mapping-plugin.

系统先配置子域d2.domain1.com(在sites下然后映射

The system is first configured with subdomain d2.domain1.com (under sitesand then mapped

domain2.com 到 d2.domain1.com

domain2.com to d2.domain1.com

检查域映射中的以下设置:远程登录、永久重定向、用户域映射页面、将管理页面重定向到站点的原始域

The following settings in domain mapping are checked: Remote Login, Permanent redirect, User domain mapping page, Redirect administration pages to site's original domain

我的问题是我无法从 domain2.com/wp-admin 访问管理员 - 它只是给我这个错误:

My problem is that I can't access the admin from domain2.com/wp-admin - it just gives me this error:

Now The domain mapping plugin only works if the site is installed in /. This is a limitation of how virtual servers work and is very difficult to work around.

但是wordpress安装在/.

But the wordpress IS installed in /.

相关的wp-config如下:

Relevant wp-config below:

define( 'MULTISITE', true );
define( 'SUBDOMAIN_INSTALL', true );
// $base = '/';                                                                                                                                      
define( 'DOMAIN_CURRENT_SITE', 'domain1.com' );
define( 'PATH_CURRENT_SITE', '/' );
define( 'SITE_ID_CURRENT_SITE', 1 );
define( 'BLOG_ID_CURRENT_SITE', 1 );
define( 'NOBLOGREDIRECT', 'http://domain1.com' );

推荐答案

在子域和文件夹设置之间切换时,wp_site-table 中可能会出现错误.确保主域的路径设置为 /.

When changing between subdomain and folder-setup, there might be a error in the wp_site-table. Make sure that the path is set to / for the main domain.

这篇关于Wordpress MU,无法访问/wp-admin的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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