• I’m using the MU Domain Mapping plugin and am very happy with it.
    However I noticed that calling resources (like image and js sources/domains) are called with the original domain names.

    Example:
    Suppose, the main domain name of the MU setup is: maindomain.com
    I add an extra domain name: childdomain
    I use a subdomain setup and the internal domain name for the child site is: childdomain.maindomain.com

    Then I go to childdomain.com and everything works fine. However, when I check the HTML source, I see that the sources are coming from childdomain.maindomain.com
    (e.g. <img src="https://childdomain.maindomain.com/wp-content/uploads/image.jpg" />)

    Is there a way to get the sources also use the new (child) domain?

    I’m asking this because I receive errors once I set the website to use https.

    • This topic was modified 6 years, 8 months ago by Gooly.
Viewing 1 replies (of 1 total)
  • Plugin Author Ron Rennick

    (@wpmuguru)

    Make the URLs relative on static resources outside your post/page content. Ex. Instead of https://childdomain.maindomain.com/wp-content/uploads/image.jpg use /wp-content/uploads/image.jpg .

Viewing 1 replies (of 1 total)
  • The topic ‘Resources from different domains’ is closed to new replies.