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.
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.