Support » Networking WordPress » getting 404 error on admin panel for sub-directory multisite on a sub-domain

  • Resolved Siddharth Jain

    (@jainsiddharth21)


    I am using IIS server and have installed sub-directory multisite on my subdomain.
    I have navigated to ‘Super Admin -> ‘Sites’ and used ‘Add New’ to create a new site. This appears to work, but styling is not there. The homepage is messed up completely but it is added to the list of sites. If I click on Edit or go to Backend, then I get a 404 error message (page not found). What should I do ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • Define “Messed up”? No CSS loads? If so, it’s your redirects. You’ll have to figure out the web.config or .htaccess rules.

    It means the css is not coming. It is showing the text with no styling and the backend for child theme is giving 404 error.

    there is no .htaccess file in the IIS server, I have a web.config file that is generated by wordpress itself at the time on installation of multisite.

    web.config generated by wordpress

    <?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-]+/)?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="^([_0-9a-zA-Z-]+/)?(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-]+/)?([_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>
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘getting 404 error on admin panel for sub-directory multisite on a sub-domain’ is closed to new replies.