[wp-trac] [WordPress Trac] #26800: Wordpress Multisite is hardcoded to redirect to http:// for invalid domains

WordPress Trac noreply at wordpress.org
Thu Jan 9 12:03:14 UTC 2014


#26800: Wordpress Multisite is hardcoded to redirect to http:// for invalid domains
--------------------------+-----------------------------
 Reporter:  glen.pike.hf  |      Owner:
     Type:  enhancement   |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  3.8
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 We have a multisite installation configured for sub-folders, which is
 served to the non-logged-in users over SSL.

 Scenario is that WP is used as a help system with a number of language /
 feature translations for different levels of customer.  The install sits
 on a server behind a proxy serving on SSL.  Customers will have different
 domains depending on who they are, but their help should be served from
 the default site.

 If we use any domain which does not match the DOMAIN_CURRENT_SITE value,
 the user is redirected to DOMAIN_CURRENT_SITE + PATH_CURRENT_SITE, etc.

 The problem we have is that ms-settings.php is hardcoded to use "http://"
 for this redirection.  This breaks our site for users as we don't serve on
 port 80.

 The request is to change ms-settings.php to check for SSL and use the
 correct protocol for redirection.

 We've tried some different plugins to resolve this, but have not
 successfully managed to avoid the initial redirection.

 Setup:

 Configure server to use SSL only.
 Install Wordpress in a subdirectory of the web server's document root.
 Enable multisite and configure.
 Add a second site.
 Create a "dummy" domain in your hosts file to point at the server.
 Visit the Wordpress install using the dummy domain on SSL

--
Ticket URL: <https://core.trac.wordpress.org/ticket/26800>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list