[Domain Mapping] Allow to disable the choice between http, https and force none

The Domain Mapping plugin gives site admins the option to choose between "http://", "https://" or "force none" when adding their domain. For networks that require HTTPS (or perhaps don't support it?), it would be welcome to be able to force one or the other.
Thanks!

  • Axel

    Hi Kasia,

    Thank you for your reply.
    Forcing it on network level is indeed what I mean.

    E.g. on my multisite HTTPS is a requirement. If users then can choose between HTTP/HTTPS or force none in their domain mapping settings, users who understand it's simply a plugin which could also be used in other setups would understand, but to others (I think the majority) it will be confusing. So, to keep settings as simple and straightforward as possible and to prevent support tickets from users who did not set it, it would be better if https:// before the domain field were a fixed value rather than something they have to select themselves.

  • Patrick Freitas

    Hi Axel

    How are you today?

    Thank you for the feedback, the suggestion is to remove the select option and let the network settings care about this?

    I'm afraid it needs to have the selection to member select use or not the SSL if member customer doesn't have SSL and add an HTTPS the site won't work, thinking in general sites. But maybe some extra options "Allow subsite admins choose HTTP/HTTPS"? or "Set Default Protocol"?

    I will forward this idea to Domain Mapping team and see what they think about it.

    However, maybe add some extra explanation to the customer would help too:

    You can add this JavaScript Function using a custom JS file or a plugin

    https://wordpress.org/plugins/custom-css-and-javascript/

    jQuery(document).ready(function($){
      $html = '<div><br><p>- Please, Select <strong>HTTPS</strong> before map the domain,</p><p>- Use HTTP just in case your SSL is not issued</p><p> Still need Help?</p><p></p><a class="button button-primary" href="https://TICKET_LINK_GOES_HERE">Create a Ticket</a></p></div>';
      $('#domainmapping-form-map-domain').append($html);
    });

    Best Regards,
    Patrick Freitas

  • Axel

    Hi Patrick,

    Thank you for your suggestion. It is something, but it doesn't really help with simplicity. There already is an option to add your own instructions, I think that will do. It's a good idea to add the "Create a ticket" button though. I think I'll use that on more than one occasion =)) I didn't think of it yet, but it's good to have plenty of opportunity to ask for help.

    the suggestion is to remove the select option and let the network settings care about this? I'm afraid it needs to have the selection to member select use or not the SSL if member customer doesn't have SSL and add an HTTPS the site won't work, thinking in general sites.

    Yes, of course, the choice is needed for multisites with a different setup. I didn't mean to suggest to only have the choice to set it in the network admin, only to have the option to set it, or to leave the choice to the users.

    But maybe some extra options "Allow subsite admins choose HTTP/HTTPS"?

    Yes, indeed... That or the other way around. Like leaving the default as is, but with the option to freeze it on one or the other in the network configuration, if desired.

    or "Set Default Protocol"?

    Could be an option too... My preference would be to be able to freeze it, as this would be the path with the least confusion, but I guess setting one as default might be helpful to other... I'm not really sure... Can't really think of a situation in which the default would be HTTPS (or 'force none'), if users have a choice.

    Thanks again for the suggestion!

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.