Bedrock Multisite Subdirectory access doesn't working on Windows server

Hello

I have setup multisite structure with bedrock on my windows server, where network admin is working, primary admin dashboard is working but sub directory admin dashboard is not working.

Below is my web.config file code.

Would this sample config help?

Also related:
https://gist.github.com/misaxi/67cb1444a7dccf11f7fa

In Bedrock the web/ directory is usually the root for the site, and wp/wp-admin/ would be the admin URL. It may help changing the wp-admin/ occurrences to wp/wp-admin/ in sample configurations for Windows Server.

Not It’s not working.

Primary site is working properly but sub-directory site wp-admin is not working.

In subdirectory didn’t get JS and CSS URL properly. Screenshot by Lightshot

Do you have proper web.config file ?

Thanks & Regards
Mahesh

Can you post the web.config file as text?
I do not have a Windows server to test on, but maybe such a Docker image could help reproducing the issue?
https://hub.docker.com/_/microsoft-windows-base-os-images

Is there any private way where I will share my site URL and admin details so you will check easily my issue.

This is my Web.config file

        <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="^([_0-9a-zA-Z-]+/)?files/(.+)" ignoreCase="false" />
                <action type="Rewrite" url="wp-includes/ms-files.php?file={R:2}" appendQueryString="false" />
            </rule>
            <rule name="WordPress Rule 3" stopProcessing="true">
                <match url="^([_0-9a-zA-Z-]+/)?wp-admin$" ignoreCase="false" />
                <action type="Redirect" url="{R:1}wp-admin/" redirectType="Permanent" />
            </rule>
            <rule name="WordPress Rule 4" 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 5" stopProcessing="true">
                <match url="(^[_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*)" ignoreCase="false" />
                <action type="Rewrite" url="{R:2}" />
            </rule>
            <rule name="WordPress Rule 6" stopProcessing="true">
                <match url="^([_0-9a-zA-Z-]+/)?(.*\.php)$" ignoreCase="false" />
                <action type="Rewrite" url="{R:2}" />
            </rule>
            <rule name="WordPress Rule 7" stopProcessing="true">
                <match url="." ignoreCase="false" />
                <action type="Rewrite" url="index.php" />
            </rule>

        </rules>

I send you a private message.

How I can send you private message?

You select my name or avatar, e.g. in this discussion, and then select “Message”.
There you can post a private message to me, like an answer in this discussion.

I am trying to find out private message from my profile but didn’t find out it, Is there any base is required for posting private message?

If you will share your email then I will directly reach out you.

Thanks

Thank you @strarsis for your support, I got solution. Below I share the code which can help to community.

This code is support to root domain with subfolder multisite only.
https://test.com/
https://test.com/multisite1
https://test.com/multisite2

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>			
        <rewrite>
		
		  <rules>			
			<rule name="Imported Rule 2" stopProcessing="true">
			  <match url="^index\.php$" ignoreCase="false" />
			  <action type="None" />
			</rule>
			<!--# add a trailing slash to /wp-admin-->
			<rule name="Imported Rule 3" stopProcessing="true">
			  <match url="^([_0-9a-zA-Z-]+/)?wp-admin$" ignoreCase="false" />
			  <action type="Redirect" redirectType="Permanent" url="{R:1}wp-admin/" />
			</rule>
			<rule name="Imported Rule 4" 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="Imported Rule 5" stopProcessing="true">
			  <match url="^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*)" ignoreCase="false" />
			  <action type="Rewrite" url="wp/{R:2}" />
			</rule>
			<rule name="Imported Rule 6" stopProcessing="true">
			  <match url="^([_0-9a-zA-Z-]+/)?(.*\.php)$" ignoreCase="false" />
			  <action type="Rewrite" url="wp/{R:2}" />
			</rule>
			<rule name="Imported Rule 7" stopProcessing="true">
			  <match url="." ignoreCase="false" />
			  <action type="Rewrite" url="index.php" />
			</rule>
		  </rules>
		</rewrite>
    </system.webServer>
</configuration>
1 Like