Works perfectly with http, but not https
-
I have this plugin setup on my site set up as follows:
Main domain: https://www.wastepackgroup.co.uk
2 Sub domains:
https://www.wastepack.co.uk which is used for all pages in the packaging category – https://www.wastepackgroup.co.uk/packaging
https://www.electrolink.eu.com which is used for all pages in the WEEE category – https://www.wastepackgroup.co.uk/weeeThis has been working flawlessly thus far, however we have now installed SSL certificates today and I’ve changed all of the references to use https instead and now everything just points back to https://www.wastepackgroup.co.uk
I have tried the following code as posted in another thread, but it has made no difference.
add_filter('the_content', 'fix_content_for_multiple_domain'); function fix_content_for_multiple_domain($content) { if (defined('MULTPLE_DOMAIN_ORIGINAL_DOMAIN') && MULTPLE_DOMAIN_ORIGINAL_DOMAIN !== MULTPLE_DOMAIN_DOMAIN) { $regex = '/(https?:\/\/)' . preg_quote(MULTPLE_DOMAIN_ORIGINAL_DOMAIN) . '/i'; $content = preg_replace($regex, '$1' . MULTPLE_DOMAIN_DOMAIN, $content); } return $content; }
The page I need help with: [log in to see the link]
- The topic ‘Works perfectly with http, but not https’ is closed to new replies.