[wp-trac] [WordPress Trac] #25106: web.config for multisite configurations on IIS7
WordPress Trac
noreply at wordpress.org
Fri Oct 11 00:38:12 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):
I '''cannot''' reproduce this using WordPress r25761
'''NOTE''': This test is '''NOT''' using
[http://wordpress.org/support/plugin/wordpress-mu-domain-mapping WordPress
MU Domain Mapping] plugin.
Setup x64 Windows 8.1, IIS 8.5, IIS URL Rewrite Module 2 v7.2.2
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/
/wp-admin <- All sites work 'as expected'
* http://primarysite.nw/wp-admin/
* http://primarysite.nw/wp-admin/network/
* http://firstsite.primarysite.nw/wp-admin/
* http://secondsite.primarysite.nw/wp-admin/
Hello World <- All sites work 'as expected'
* http://primarysite.nw/hello-world/
* http://firstsite.primarysite.nw/hello-world/
* http://secondsite.primarysite.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);
}}}
web.config
{{{
#!xml
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="WordPress Rule 1" stopProcessing="true">
<match url="^index\.php$" ignoreCase="false" />
<action type="None" />
</rule>
<rule name="WordPress Rule 2" stopProcessing="true">
<match url="^wp-admin$" ignoreCase="false" />
<action type="Redirect" url="wp-admin/"
redirectType="Permanent" />
</rule>
<rule name="WordPress Rule 3" stopProcessing="true">
<match url="^" ignoreCase="false" />
<conditions logicalGrouping="MatchAny">
<add input="{REQUEST_FILENAME}" matchType="IsFile"
ignoreCase="false" />
<add input="{REQUEST_FILENAME}"
matchType="IsDirectory" ignoreCase="false" />
</conditions>
<action type="None" />
</rule>
<rule name="WordPress Rule 4" stopProcessing="true">
<match url="^(wp-(content|admin|includes).*)"
ignoreCase="false" />
<action type="Rewrite" url="{R:1}" />
</rule>
<rule name="WordPress Rule 5" stopProcessing="true">
<match url="^([_0-9a-zA-Z-]+/)?(.*\.php)$"
ignoreCase="false" />
<action type="Rewrite" url="{R:2}" />
</rule>
<rule name="WordPress Rule 6" stopProcessing="true">
<match url="." ignoreCase="false" />
<action type="Rewrite" url="index.php" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/25106#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list