WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. rpetersnmt
    Member
    Posted 3 years ago #

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

  2. mbiven
    Member
    Posted 2 years ago #

    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

  3. Mvied
    Member
    Plugin Author

    Posted 2 years ago #

    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

  4. mbiven
    Member
    Posted 2 years ago #

    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;
                    }
  5. Mvied
    Member
    Plugin Author

    Posted 2 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic