无法访问租户站点的仪表板 [英] unable to access to the dashboard of tenant sites
问题描述
我创建了多网络结构,但在访问租户站点的仪表板时遇到问题.我的超级管理员是 helpdesk.com它的租户是 abc.helpdesk.com当我单击 mysites > abc_helpdesk > 仪表板时,它会将我重定向到登录部分,使用管理员用户名登录后,即我注册的用户名,我被重定向到我试图访问 abc_helpdesk 仪表板的同一页面.
I have created multi network structure but I am getting problem in a accessing the dashboard of tenant sites. My superAdmin is helpdesk.com and its tenant is abc.helpdesk.com when I am clicking mysites > abc_helpdesk > dashboard, it is redirecting me to login section, after login with the admin username thats the username what I have registered, I am redirected to the same page from where I was trying to access abc_helpdesk dashboard.
我的 .htaccess 文件有以下代码:-
my .htaccess file has following code :-
# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
# uploaded files
RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule . index.php [L]
# END WordPress
在 config.php 中我有以下代码:-
and in config.php I have following codes :-
define('WP_ALLOW_MULTISITE', true);
define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', true);
$base = '/';
define('DOMAIN_CURRENT_SITE', 'local.wordpress.com');
define('PATH_CURRENT_SITE', '/');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 1);
/* That's all, stop editing! Happy blogging. */
已刷新所有 cookie,我再次无法使用仪表板,我只能访问该站点,因为任何其他选项登录页面即将到来,并且在使用管理员的用户名登录后,我被重定向到我所在的同一页面以前..:(
have flushed all cookies, again I am not able to use dashboard, I can just visit the site, for any other option login page is comming and after being logged with the admin's username I am redirected to the same page where I was previously.. :(
推荐答案
实际上我必须在我的虚拟主机文件中设置通配符条目......即,在 httpd-vhost.conf 文件中,我必须添加新行:-ServerAlias *.local.wordpress.com
Actually I have to set wildcard entries in my virtual host files... i.e.,
in httpd-vhost.conf file i have to add new line :-
ServerAlias *.local.wordpress.com
在主机文件中我必须再添加一行127.0.0.1 *.local.wordpress.com
and in host file i have to add one more line
127.0.0.1 *.local.wordpress.com
这解决了我的问题:)
这篇关于无法访问租户站点的仪表板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!