Hi,
I’ve got a network up and running on Bedrock using subdomains. All 9 sites appear to be working except for the fact that they’re all using the primary site’s URL for media assets, CSS, JS etc.
For example, the primary site URL is abc.domain.com and one subsite URL is xyz.abc.domain.com. I have uploaded a media asset to the subsite’s media library, but that asset’s URL is https://abc.domain.com/app/uploads/sites/3/2021/05/image.jpg.
Additionally, inserting the theme CSS using the following:
wp_enqueue_style('style', get_stylesheet_directory_uri() . $css, false, filemtime(get_stylesheet_directory() . $css), 'screen');
inserts the css with the path https://abc.domain.com/app/themes/theme-name/assets/css/main.min.css?ver=1620990609
Can anybody help with this problem please?