Title: Works perfectly with http, but not https
Last modified: February 7, 2019

---

# Works perfectly with http, but not https

 *  Resolved [Tony Law](https://wordpress.org/support/users/lbtdev/)
 * (@lbtdev)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/works-perfectly-with-http-but-not-https/)
 * I have this plugin setup on my site set up as follows:
 * Main domain: [http://www.wastepackgroup.co.uk](http://www.wastepackgroup.co.uk)
   
   2 Sub domains: [http://www.wastepack.co.uk](http://www.wastepack.co.uk) which
   is used for all pages in the packaging category – [http://www.wastepackgroup.co.uk/packaging](http://www.wastepackgroup.co.uk/packaging)
   [http://www.electrolink.eu.com](http://www.electrolink.eu.com) which is used 
   for all pages in the WEEE category – [http://www.wastepackgroup.co.uk/weee](http://www.wastepackgroup.co.uk/weee)
 * This 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 [http://www.wastepackgroup.co.uk](http://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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fworks-perfectly-with-http-but-not-https%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Thread Starter [Tony Law](https://wordpress.org/support/users/lbtdev/)
 * (@lbtdev)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/works-perfectly-with-http-but-not-https/#post-11189071)
 * I have worked on this a little more and the issue only presents on Chrome now.
   All other browsers are fine. I have tried clearing my cache but it has had no
   effect. Please advise.
 *  Thread Starter [Tony Law](https://wordpress.org/support/users/lbtdev/)
 * (@lbtdev)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/works-perfectly-with-http-but-not-https/#post-11189224)
 * Tried on a fresh instance of Chrome and it worked, so this appears to be a caching
   issue with the individual browser. Looks like it’s working fine now.
 *  [donPablo](https://wordpress.org/support/users/nook86/)
 * (@nook86)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/works-perfectly-with-http-but-not-https/#post-11255369)
 * hello i have written email to you 🙂
    -  This reply was modified 7 years, 3 months ago by [donPablo](https://wordpress.org/support/users/nook86/).
 *  Plugin Author [matthias.wagner](https://wordpress.org/support/users/matthiaswagner/)
 * (@matthiaswagner)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/works-perfectly-with-http-but-not-https/#post-11255477)
 * [@nook86](https://wordpress.org/support/users/nook86/) looks like that email 
   has disappeared somewhere in the net 😉 anyway, please use the forum for your
   questions. if it is http/https-related, chances are pretty high you will find
   your solution in the existing threads…
 *  [donPablo](https://wordpress.org/support/users/nook86/)
 * (@nook86)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/works-perfectly-with-http-but-not-https/#post-11255632)
 * i have send 😉
 * hello sir
 * i found your site via [https://wordpress.org/support/topic/works-perfectly-with-http-but-not-https/](https://wordpress.org/support/topic/works-perfectly-with-http-but-not-https/)
 * ki have a question [http://www.wastepackgroup.co.uk/](http://www.wastepackgroup.co.uk/)
   really works on one installation [only normal qordpress tables and all content
   in wp_posts?] and really this multidomains works? does it have ability to change
   themes? i look for something like that to make easy my sites administration i
   dont have time nowadays :))
 * btw you got log in possiblity there i can bet cookies does not work between domains?
 * and btw why you needed wildcard ssl for [https://www.wastepack.co.uk/](https://www.wastepack.co.uk/)?
   i dont see you use it with that multidomain installation just seprate domains
   with normal ssl’s without wildcard?
 *  Plugin Author [matthias.wagner](https://wordpress.org/support/users/matthiaswagner/)
 * (@matthiaswagner)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/works-perfectly-with-http-but-not-https/#post-11257628)
 * [@nook86](https://wordpress.org/support/users/nook86/) i can not follow your 
   explanations and did not receive any emails either. the plugin will do exactly
   what is described at [https://wordpress.org/plugins/multiple-domain-mapping-on-single-site/](https://wordpress.org/plugins/multiple-domain-mapping-on-single-site/).
 * if you are not sure, try it out before you ask cryptic questions. no further 
   answers will be given here.
 * matt

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Works perfectly with http, but not https’ is closed to new replies.

 * ![](https://ps.w.org/multiple-domain-mapping-on-single-site/assets/icon-256x256.
   png?rev=1595238)
 * [Multiple Domain Mapping on Single Site](https://wordpress.org/plugins/multiple-domain-mapping-on-single-site/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/multiple-domain-mapping-on-single-site/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/multiple-domain-mapping-on-single-site/)
 * [Active Topics](https://wordpress.org/support/plugin/multiple-domain-mapping-on-single-site/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/multiple-domain-mapping-on-single-site/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/multiple-domain-mapping-on-single-site/reviews/)

## Tags

 * [SSL](https://wordpress.org/support/topic-tag/ssl/)

 * 6 replies
 * 3 participants
 * Last reply from: [matthias.wagner](https://wordpress.org/support/users/matthiaswagner/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/works-perfectly-with-http-but-not-https/#post-11257628)
 * Status: resolved