All multisite / network site assets using main site URL


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 and one subsite URL is I have uploaded a media asset to the subsite’s media library, but that asset’s URL is

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

Can anybody help with this problem please?

Happy for this to be closed. Solution found

This topic was automatically closed after 42 days. New replies are no longer allowed.