Unable to force SSL to root URL

I am unable to force SSL to root URL with the most recent Domain Mapping update.

    • Dan Berdal

      That would be a simple solution wouldn't it? No, unfortunately, with the most updated version of the plugin, neither force frontend to https or force to http will work.

      On my development site new.exxxxx you're welcome to update domain mapping plugin and test.

      I have already tested with 2016 theme and all plugins disabled and the problem persists in version 4.4.2.5. Rolling back to version 4.4.2.4 solves the problem.

      I ran tests with debug logging turned on, and no errors were shown

      ( This thread was created for me by support after a live chat conversation, and it seems to have lost a lot of the details of that previous conversation)

  • Predrag Dubajic

    Hi Dan,

    Your thread is linked to your chat so we also have access to entire chat and I did check that before my previous response.

    The strange this is that now I can see the issue but before my previous comment I was unable to, I went to your new.exxxxx and DM version was already at 4.4.2.5 so I enabled front end to force HTTPS and it did that right away, even after multiple tests.

    So I did exactly the same thing now and then but now the issue is happening, and I'm wondering if this could be related to caching.
    Have you tried this without W3TC caching as it's quite aggressive caching plugin and I'm wondering if it can be related to that?

    Best regards,
    Predrag

  • Dan Berdal

    The site is available by ssl, but if you manually type in http:// it will not get forced to https://

    When I did the live chat I disabled all plugins and used 2016 theme and the issue persisted. The support person I was chatting with confirmed the issue.

    Rolling back to 4.4.2.4 fixes the problem immediately.

    Do you have a system you can test on? I'm experiencing this on both my sites, so I'm quite confident it is a bug.

  • Predrag Dubajic

    Hi Dan,

    Ok, after some extensive testing I was finally able to replicate the issue on one of my installation, I still couldn't get it at first as I was getting the same results as I first checked your site where HTTPS was forced even with 4.4.2.5

    So after clearing the cache and testing from different PC I could in the end see the issue so I have created a report for our developers.

    Best regards,
    Predrag

  • Dan Berdal

    My guess, is that this is probably happening to a lot of sites and people aren't noticing.

    It's not breaking ssl, so you'll only notice if you are really paying attention. For me, any links I click from the WordPress dash use https. I went two weeks before I saw the bug.

    This could have been critical if ssl got dropped from payment collection pages! Fortunately for me, woocommerce forces https, but for others they might be collecting credit cards unsecured.

    At a minimum, https, got dropped from some of my login pages which Google penalizes.

    What's the process from here to get this fixed?

  • Dan Berdal

    Hi Predrag,

    I'm subscribed to another thread working through issues with the domain mapping plugin - but it must have gotten marked private because I can no longer access the thread (just email notifications). Anyway, I saw in that thread that you had a beta version for him to test. Does the current beta address this issue? If so, can you post it here for me to try out?

    Thanks,

    -Dan

  • Dan Berdal

    Hi Predgrag,

    I just wanted to check in on a timeframe for an update on this plugin.

    I gotta imagine this is a wpmudev core plugin; kinda surprised how long these bugs have gone unsolved. I tested the beta that you linked in your last post. Yes, it does appear to now correctly forward http traffic to https, but now it doesn't forward unmapped domains to mapped domain.

    For example: https://new.essentialoilylife.com/fulltest101/ is mapped to http://maptest2.mywifesthebomb.com

    Under the mapping settings I have chosen to redirect unmapped to mapped. It works in previous versions, but not in the beta you linked.

    Is there a newer beta I should try?

  • Predrag Dubajic

    Hi Dan,

    Domain Mapping is quite complex plugin and it has quite a few improvements getting ready for new release but all of these require extensive testing due to the nature of what the plugin does.

    We do have a newer beta right now that would hopefully pass all the tests and I have attached it below.

    After you install it try switching mapping option to "Disabled and original domain should be used", clear any caching, switch back to "Direct to mapped domain", clear the cache again and it should work fine after that.

    Let us know how it goes.

    Best regards,
    Predrag

  • Dan Berdal

    I had a chance to test things out and it seems like a few problems are fixed, but maybe a new one added in.

    After you install it try switching mapping option to "Disabled and original domain should be used", clear any caching, switch back to "Direct to mapped domain", clear the cache again and it should work fine after that.

    That did indeed allow the front end redirect to begin working again. Is there any way to accomplish this at the network level? I have 130 mapped domains, and I'm guessing there are people with a lot more than that. It's a lot of work to load up each site individually just to toggle those settings.

    Force front end to Https seems to be working again, which is great!

    One new bug I found was that from the network admin pages like: sites.php?s&action=blogs all the blog dashboard links are incorrectly going to the root site dashboard instead of the individual blog dashboards. This bug was present in the previous beta you sent as well, but not in the release version 4.4.2.5

  • Predrag Dubajic

    Hi Dan,

    I think that the issue with not mapping domains was just related to caching and above steps should go around that to make them work instantly, can you check if your other mapped domains are working without that as well?

    If it doesn't work you could try going to Settings > Domain Mapping in your network admin and click on star icon to disable and re-enable primary domain and hopefully that would do the trick.
    My mapped domains on test site all currently work so I could confirm if this will work 100%

    One new bug I found was that from the network admin pages like: sites.php?s&action=blogs all the blog dashboard links are incorrectly going to the root site dashboard instead of the individual blog dashboards. This bug was present in the previous beta you sent as well, but not in the release version 4.4.2.5

    Thanks for this, I can see the same issue and have reported it to our developers to check it out before final version is released.

    Best regards,
    Predrag

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.