admin管理员组文章数量:1322838
I am having a problem with serving static theme assets and plugins assets from the correct domain on our multisite sage website. We have 2 different domains for the multisite. The first domain is maindomain and the second is let’s say otherdomain
So everything works okay when we are on our main multisite with domain maindomain. But when we visit otherdomain, there is a problem with fonts (and other static assets), because they are being served from maindomain, not otherdomain
Sage theme dist are served from maindomain/app/sage-theme/dist/..
instead of otherdomain/app/sage-theme/dist/..
Plugins are served from maindomain/app/plugins/plugin-name/plugin-assets
instead of otherdomain/app/plugins/plugin-name/plugin-assets
Images are served from maindomain/app/uploads/sites/2
instead of otherdomain/app/uploads/sites/2
I did come across a WordPress ticket that could be related to the problem:
But I am not entirely sure if it’s not the problem in the Sage theme itself…
Here is the config:
Config::define('COOKIE_DOMAIN', '');
Config::define('ADMIN_COOKIE_PATH', '/');
Config::define('COOKIEPATH', '');
Config::define('SITECOOKIEPATH', '/');
Config::define('WP_DEBUG', false);
Config::define('WP_DEBUG_DISPLAY', false);
Config::define('WP_DISABLE_FATAL_ERROR_HANDLER', false);
Config::define('SCRIPT_DEBUG', false);
Config::define('DISALLOW_FILE_MODS', true);
Config::define('WP_ALLOW_MULTISITE', true);
Config::define('MULTISITE', true);
Config::define('SUBDOMAIN_INSTALL', false);
Config::define('DOMAIN_CURRENT_SITE', 'maindomain');
Config::define('PATH_CURRENT_SITE', '/');
Config::define('SITE_ID_CURRENT_SITE', 1);
Config::define('BLOG_ID_CURRENT_SITE', 1);
All info and feedback will be appreciated! Thanks!
本文标签: Serve theme and plugins assets from correct domain on multidomain multisite
版权声明:本文标题:Serve theme and plugins assets from correct domain on multi-domain multisite 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742116734a2421502.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论