• Resolved chaplaindoug

    (@chaplaindoug)


    Windows Server 2008 R2. IIS 7.x.

    I created a test multisite installation and created one sub site named “brevard” in the multisite “network.” During the installation and setup, I was told that it was going to setup URLs as path-based (as I recall), with no other option. Anyhow, I can browse to the sub site using 10.251.0.15/brevard. However, when I try to administer the site by going to the site under “My Sites,” I get an HTTP Error 404.0 – Not Found. It is trying to navigate to:

    10.251.0.15/brevard/wp-admin/

    What might be the problem?

Viewing 1 replies (of 1 total)
  • Thread Starter chaplaindoug

    (@chaplaindoug)

    The web.config code provided by WordPress during the initial setup of multisite appears to have been the problem. I found someone who had made it work and copied their web.config. The discussion is found at here. The code for it is below.

    <?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="^([_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>
            </rewrite>
        </system.webServer>
    </configuration>

Viewing 1 replies (of 1 total)
  • The topic ‘Cannot Login to a Multisite’ is closed to new replies.