Support » Plugin: WordPress MU Domain Mapping » Running with CDN: problem with plugin asset links

  • Hi!

    I used the MU Domain Mapping plugin for years now without problems and thank you very much for writing it. Now, though, I have encountered a problem and I do not seem to find a solution.

    I have a multisite network ( running the WP 4.5.3 and MU Domain Mapping Options to redirect and remote login are enabled. sunrise.php in wp-content is identical to the one found in the plugin.

    We also have configured WP to load assets from a separate URL that points to a soon-to-be CDN server. The configuration for that is:
    define( ‘WP_CONTENT_URL’, ‘//’ );

    All is well except that for some of the plugins, notably “The Events Calendar” and “Contact Form 7” the links to CSS files of the plugins are not generated correctly. Instead of pointing to the expected URL like
    the links generated use the hosted site URL (e.g. ) and fail to load. Strangely, in the same page the same plugin generates correct and wrong links:

    <link rel='stylesheet' id='tribe-events-custom-jquery-styles-css'  href='' type='text/css' media='all' />
    <link rel='stylesheet' id='tribe-events-full-calendar-style-css'  href='' type='text/css' media='all' />

    Disabling the plugin MU Domain Mapping causes all links to generate correctly. For an example of a problematic page, you can have a look at

    Any ideas what may be wrong here?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Ron Rennick


    The plugins with the conflicts are adding the scheme to the urls ( vs //

    Thread Starter Tigr


    How does adding the schema change the host name in the URL?

    Plugin Author Ron Rennick


    That’s an indication that the plugin is not using the standard WP functions for generating a static resource URL under wp-content. You would have to look at the problem plugin to see what’s happening.

    Thread Starter Tigr


    Apparently there are also problems with symlinks on Linux. If wp-content is outside wordpress installation and is symlinked into it, some things also break…

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Running with CDN: problem with plugin asset links’ is closed to new replies.