Forums

[resolved] Configuring Network Support in IIS (3 posts)

  1. JWise1203
    Member
    Posted 6 months ago #

    I am running WordPress 3.2.1 on MS IIS 7.5 ... I have just enabled Network support using the sub-directory configuration. I have made the suggested modifications to the wp-config.php file and also created a web.config file in the root directory of the web site.

    I can access a network site that I created. However, when I visit the new network site in a browser CSS is not working I just see a text version of the page... would anyone be able to point me in the right direction?

  2. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 6 months ago #

    The CSS not working normally means your .htaccess isn't working... So in this case, it's your web.config not being set up right and that's the practical limit of my IIS knowledge :/

  3. JWise1203
    Member
    Posted 6 months ago #

    Thanks for the insight Ipstenu. Your comment pointed me to search more specifically on web.config file. I found a post which suggested changes to the file (see below) and it's working perfectly now. Here is a link to the post: http://wordpress.org/support/topic/multisite-install?replies=4#post-2198998

    Here is what I am using for my web.config:

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

Reply

You must log in to post.

About this Topic