Using CDN static content storage with multiple domain names?
-
For whatever reason, we have a few domains pointing at our WordPress configuration. Our main site is https://www.mainsite.com, while https://www.secondarysite.com actually uses the same WP install and uses some logic in wp-config to change the site’s wp_home and wp_siteurl:
define(‘WP_HOME’,’https://’ . $_SERVER[‘HTTP_HOST’] . ”);
define(‘WP_SITEURL’,’https://’ . $_SERVER[‘HTTP_HOST’] . ”);However, a few things work, while others dont, using the CDN feature.
For example, broken content looks like this in secondarysite.com:
Whereas it looks like this on mainsite:
Is this because we activated the plugin while on mainsite.com? I noticed that when we deactive it and then turn it back on, it works according to that domain…
Is there a fix for this? It would be really nice to have this work across our other domain aliases.
- The topic ‘Using CDN static content storage with multiple domain names?’ is closed to new replies.