Thanks for your response. My WP multisite is installed on a Windows 2008 server using Microsoft Web Platform Installer and updated to WP 4.8, so i’m using web.config instead of .htaccess. The site is set up as subdirectory, not subdomain.
Here’s the code added to wp-config.php (Domain_Current_Site blocked out intentionally):
/* Multisite */
define(‘WP_ALLOW_MULTISITE’, true);
define(‘MULTISITE’, true);
define(‘SUBDOMAIN_INSTALL’, false);
define(‘DOMAIN_CURRENT_SITE’, ‘****’);
define(‘PATH_CURRENT_SITE’, ‘/WPMulti/’);
define(‘SITE_ID_CURRENT_SITE’, 1);
define(‘BLOG_ID_CURRENT_SITE’, 1);
define(‘ADMIN_COOKIE_PATH’, ‘/’);
define(‘COOKIE_DOMAIN’, ”);
define(‘COOKIEPATH’, ”);
define(‘SITECOOKIEPATH’, ”);
And here’s the web.config:
<?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=”^WPMulti/([_0-9a-zA-Z-]+/)?wp-admin$” ignoreCase=”false” />
<action type=”Redirect” url=”{R:1}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=”^WPMulti/([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*)” ignoreCase=”false” />
<action type=”Rewrite” url=”WPMulti/{R:1}” />
</rule>
<rule name=”WordPress Rule 5″ stopProcessing=”true”>
<match url=”^WPMulti/([_0-9a-zA-Z-]+/)?([_0-9a-zA-Z-]+/)?(.*\.php)$” ignoreCase=”false” />
<action type=”Rewrite” url=”WPMulti/{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>
Thanks for your help!
Selena Smith