Support » Plugin: WordPress HTTPS (SSL) » [Plugin: WordPress HTTPS] WordPress Multisite Domain Mapping Support?

  • Any chance that I could find a clue or two here about getting SSL to work on a multisite mapped domain name? Thx!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Does this plugin work with multisite and/or domain mapping?

    I’m encountering the partially encryption errors and I’ve tried both the 1.9.2 and the 19.3.-dev version of this plugin with no success. I’ve disabled domain mapping with trying the plugin with no change.

    Thanks,

    Michael

    Plugin Author Mike Ems

    (@mvied)

    Hey mbiven,

    Have you tried to identify what’s causing the partially encrypted errors? Please read the FAQ under “How do I fix partially encrypted errors?” and post the results here.

    Thanks,
    Mike

    Yes, these are internal objects (css, js, images) and images from an external source (our cdn).

    Focusing on only the internal objects…

    if I was to load https://www.stage.domain.com the css, js and images all show they are loading from stage.domain.com:80 (via firebug). On this stage server stage.domain.com is the main site and http://www.stage.domain.com is a site in stage.domain.com’s network.

    I expect that multisite is causing the problem. My understanding is that it has a series of redirects it will use and that is why I’m seeing requests for css,js and images from stage.domain.com.

    And as an example the theme pulls in the stylesheet using this:

    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>"/>

    and that returns:

    <link rel="stylesheet" href="http://www.stage.domain.com/wp-content/themes/THEME_NAME/style.css"/>

    I would expect that your plugin would see the the stylesheet_url request and handle the change?

    /**
                     * Filters HTTPS urls from bloginfo function
                     *
                     * @param string $result
                     * @param string $show
                     * @return string $result
                     */
                    function bloginfo($result = '', $show = '') {
                            if ( $show == 'stylesheet_url' || $show == 'template_url' || $show == 'wpurl' || $show == 'home' || $show == 'siteurl' || $show == 'url' ) {
                                    $result = $this->replace_https($result);
                            }
                            return $result;
                    }
    Plugin Author Mike Ems

    (@mvied)

    Hey mbiven,

    I’ve used the plugin on a multisite with two separate domains, so I’m not convinced mutlisite is the problem, although it’s possible.

    Correct, but that method of changing the URL’s is only one of many. The process method uses output buffering to parse the HTML output of each page and replace URL’s where necessary. A lot of the other hooks into functions (such as bloginfo) are merely there for good measure.

    I suppose I could take a look at your setup and see if I can see if anything would be causing a problem. If you’d like, you can email details to mike[at]mvied[dot]com.

    Thanks,
    Mike

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: WordPress HTTPS] WordPress Multisite Domain Mapping Support?’ is closed to new replies.