Domain Mapping resulting in https permalink structure

So my organization has 2 Multisite networks; sites.orgname.edu and departments.orgname.edu. Currently we have 2 sites that need their own domains. 1 site is currently in the sites network, the other is in the departments network. When we change the sites domains, everything works okay, however, the permalink structure defaults to https. The site can be viewed at http, however the permalink structure is https and adding media uses https url and viewing pages defaults to https. How does this happen? How do I fix this? The sites inside the current networks (sites, departments) work like normal. Why is it only when I change to new domains?

  • Michael Bissett
    • Recruit

    Hey @Matthew, hope you're doing well today! :slight_smile:

    I'm not seeing that our Domain Mapping plugin is installed on those sites, what plugin are you using presently? And if you're interested, what if you were to try using ours instead?

    https://premium.wpmudev.org/project/domain-mapping/

    Could you enable Support Access to the sites please, so that we can have a closer look at how you've got things set up here? :slight_smile:

    Please advise,
    Michael

  • Sonya
    • Design Lord, Child of Thor

    We weren't using that plugin to map a domain. I have since switch out plugins and am using the WPMU Domain Mapping plugin. An issue I am having now is that the instructions say to map a domain by going to the site's dashboard Tool > Domain Mapping panel. I have no such panel in my sites. I can see a mapped domain that existed using the previous plugin at the network level, but I cannot map any new sites? Why is that?

    Also, I'm not sure I can allow you access to our admin console. We are a public university and authenticate users through LDAP. I don't think I can add you as a use outside of that system.

  • Sonya
    • Design Lord, Child of Thor

    Okay, so I am narrowing down some things. So I replaced the previous domain mapping plugin with WPMU's. I used WPMU's plugin to delete the previously mapped sites that were listed due to the previous plugin's setting so that I could start over using WPMU domain mapping. Unfortunately, now my 2 sites can no longer be resolved. They are listed in the sites directory. The database tables exist as well. However, I get a 404 error for the URL because it is looking in the root multisite install. It's as if the site no longer exists even though on the WP admin side and DB side everything looks kosher. It's as if the the server can't find the site, even though the content is there. Is that something on the sever side I need to deal with? Restart Apache?

  • Sonya
    • Design Lord, Child of Thor

    Sorry, for all the the above crap, because, ultimately, it was an error on my part. I never put the trailing slashes on the site path which is why the sites wouldn't resolve. Everything is almost there. The last issue is that in the Domain Mapping Settings, when I choose to make all login and admin pages to be https, it doesn't do it. When I add `define('FORCE_SSL_LOGIN', false);
    define('FORCE_SSL_ADMIN', false);` to the wp-config file, I keep getting stuck in a redirect loop when trying to access the dashboard or login page.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.