[wp-trac] [WordPress Trac] #25106: web.config for multisite configurations on IIS7
WordPress Trac
noreply at wordpress.org
Fri Oct 11 01:09:48 UTC 2013
#25106: web.config for multisite configurations on IIS7
--------------------------------------------------+------------------
Reporter: mrevets | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.8
Component: IIS | Version: 3.5
Severity: normal | Resolution:
Keywords: has-patch needs-testing dev-feedback |
--------------------------------------------------+------------------
Comment (by netweb):
The following are the results '''INCLUDE'''
[http://wordpress.org/support/plugin/wordpress-mu-domain-mapping
WordPress MU Domain Mapping] plugin.
Primary site: http://primarysite.nw/wp-admin/
Sub Domain Site 1: http://firstsite.primarysite.nw/
Sub Domain Site 2: http://secondsite.primarysite.nw/
All three sites using {{{Post name}}} permalinks {{{/%postname%/}}} eg.
http://primarysite.nw/sample-post/
CASE 1: MU Domain Mapping using 'Primary Key' = '''YES'''
(http://primarysite.nw/wp-
admin/network/settings.php?page=dm_domains_admin')
||Site ID|| Domain|| Primary||
||2|| firstsite.nw ||Yes||
||3|| secondsite.nw ||Yes||
/wp-admin
* http://primarysite.nw/wp-admin/
* http://primarysite.nw/wp-admin/network/
* http://firstsite.nw/wp-admin/ '''IS''' redirected to
http://firstsite.primarysite.nw/wp-admin/
* http://secondsite.nw/wp-admin/ '''IS''' redirected to
http://secondsite.primarysite.nw/wp-admin/
CASE 2: MU Domain Mapping using 'Primary Key' = '''NO'''
||Site ID|| Domain|| Primary||
||2|| firstsite.nw ||No||
||3|| secondsite.nw ||No||
With the sites primary key set to 'No' all URL's will be as per results in
[http://core.trac.wordpress.org/ticket/25106#comment:11 previous comment
#11]
Hello World <- All sites work 'as expected'
* http://primarysite.nw/hello-world/
* http://firstsite.nw/hello-world/
* http://secondsite.nw/hello-world/
wp-config.php (excerpt only)
{{{
#!php
/* Multisite */
define( 'WP_ALLOW_MULTISITE', true );
define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', true);
define('DOMAIN_CURRENT_SITE', 'primarysite.nw');
define('PATH_CURRENT_SITE', '/');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 1);
/* That's all, stop editing! Happy blogging. */
/** Absolute path to the WordPress directory. */
if ( !defined('ABSPATH') )
define('ABSPATH', dirname(__FILE__) . '/');
/* Include WordPress MU Domain Mapping config. */
define( 'SUNRISE', 'on' );
/** Sets up WordPress vars and included files. */
require_once(ABSPATH . 'wp-settings.php');
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/25106#comment:12>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list