I have a WordPress Multisite install set up at a generic control panel domain, for example, http://www.controlpanel.com. We're then mapping full domains to the subdomains on to this without issue.
I've already modified wp-config.php to force SSL for admin, but I'm having issues because, when in the admin panel, WordPress drops the "www," which of course causes an SSL mismatch.
I'm able to get wp-login.php to show up on both www and non-www, but no matter which one is used, it redirects to the URL without www.
How can I force the www within http://www.controlpanel.com/wp-admin?
I've tried several .htaccess modifications and they either didn't do anything or didn't work at all.
I tried modifying the wp_options table in the database so that the "siteurl" field is https://www.controlpanel.com, but that caused a redirect loop.
Any other ideas?