问题描述
限时送ChatGPT账号..我已经使用 WordPress MU 域映射插件设置了具有两个域的 MU 安装.
I've set up a MU install with two domains, using the WordPress MU Domain Mapping-plugin.
系统先配置子域d2.domain1(在sites下然后映射
The system is first configured with subdomain d2.domain1 (under sitesand then mapped
domain2 到 d2.domain1
domain2 to d2.domain1
检查域映射中的以下设置:远程登录、永久重定向、用户域映射页面、将管理页面重定向到站点的原始域
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/wp-admin 访问管理员 - 它只是给我这个错误:
My problem is that I can't access the admin from domain2/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' );
define( 'PATH_CURRENT_SITE', '/' );
define( 'SITE_ID_CURRENT_SITE', 1 );
define( 'BLOG_ID_CURRENT_SITE', 1 );
define( 'NOBLOGREDIRECT', 'http://domain1' );
推荐答案
在子域和文件夹设置之间切换时,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屋!
更多推荐
[db:关键词]
发布评论