WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] getting 404 error on admin panel for sub-directory multisite on a sub-domain (4 posts)

  1. Siddharth Jain
    Member
    Posted 1 year ago #

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

  2. Define "Messed up"? No CSS loads? If so, it's your redirects. You'll have to figure out the web.config or .htaccess rules.

  3. Siddharth Jain
    Member
    Posted 1 year ago #

    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.

  4. Siddharth Jain
    Member
    Posted 1 year ago #

    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>

Topic Closed

This topic has been closed to new replies.

About this Topic