I'm running EE multi-site manager (MSM).
- My default site's domain (say, www.default.com) is where the /themes folder is housed.
- So, for my second site (say, www.site-two.com), all of the EE and third-party theme files (js, css, etc) are being pull from www.default.com/themes/*
- Site two is secure, using https (via .htaccess), since it's running Expresso's Store and requires SSL. Default site is not https.
My problem is that the requests to the EE and third-party theme files (from the default site) are not completing because they're being requested as https://www.default.com/themes/* instead of http://...
Here's my current .htaccess mod_rewrite section
RewriteEngine On
## -- force www -- ##
RewriteCond %{HTTP_HOST} ^site-two\.com$ [NC]
RewriteRule ^(.*)$ http://www.site-two.com/$1 [R=301,L]
## -- force https -- ##
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} ^www\.site-two\.com$ [NC]
RewriteRule .* https://www.site-two.com/%1%2 [R=301,L]
## -- remove index.php -- ##
RewriteCond $1 !\.(gif|jpe?g|png)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?/$1 [L]
I've tried endless .htaccess variations with no success. I don't even know if I'm wanting is possible. I'd like to avoid making www.default.com secured (more money), if possible.
NEW INFO PER ADRIAN'S FIRST ANSWER: Using Focus Lab's master config set up, I have this for the production config, which is why it at least pulling from the default site.
$env_config['default_url'] = 'http://www.default.com';
$env_config['theme_folder_url'] = $env_config['default_url'] . '/themes/';
Any help is greatly appreciated.
EDIT: Problem is this auto-generated script from the exp:store:checkout tag. See the script.src
if (!ExpressoStore.scriptElement) {
var script = ExpressoStore.scriptElement = document.createElement("script");
script.type = "text/javascript"; script.async = true;
script.src = "//www.default.com/themes/third_party/store/store.js";
(document.getElementsByTagName("head")[0] || document.getElementsByTagName("body")[0]).appendChild(script);
}