admin管理员组文章数量:1310263
I have installed a multisite wordpress and had news.mysite
as a secondary website. I want to change the address to mysite/news
. To do so, I changed wp-config.php
to:
define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', false);
define('DOMAIN_CURRENT_SITE', 'mysite');
define('PATH_CURRENT_SITE', '/');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 1);
I also changed the .htaccess
to:
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]
Which is what I've found in Network Admin -> Settings -> Network Setup
I created a new site at /news
. The website is accessible but it doesn't load stylesheets properly. I get the following error: Resource interpreted as Stylesheet but transferred with MIME type text/html: "<URL>".
and Uncaught SyntaxError: Unexpected token '<' jquery.min.js?ver=3.5.1:1
If I go to the old address: news.mysite
it displays correctly and there is no error in the console.
What am I missing here?
本文标签: network adminGetting stylesheet error after setting subdomain to false in multisite
版权声明:本文标题:network admin - Getting stylesheet error after setting subdomain to false in multisite 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741840970a2400495.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论