• Resolved Tony Law

    (@lbtdev)


    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/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 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]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Tony Law

    (@lbtdev)

    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

    (@lbtdev)

    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

    (@nook86)

    hello i have written email to you ??

    • This reply was modified 6 years ago by donPablo.
    Plugin Author matthias.wagner

    (@matthiaswagner)

    @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

    (@nook86)

    i have send ??

    hello sir

    i found your site via https://www.ads-software.com/support/topic/works-perfectly-with-http-but-not-https/

    ki have a question https://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/ ? i dont see you use it with that multidomain installation just seprate domains with normal ssl’s without wildcard?

    Plugin Author matthias.wagner

    (@matthiaswagner)

    @nook86 i can not follow your explanations and did not receive any emails either. the plugin will do exactly what is described at https://www.ads-software.com/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.