• mhummel

    (@mhummel)


    Hello forum,

    First time WP user here! I recently installed a WP 4.1 test site on IIS 7. This is an internal site which can not be references form the Internet. The root of the site follows the format server.domain.com and the wordpress files are installed in server.domain.com/wordpress. This single-site install is working, and pretty permalinks are enabled.

    I followed the instructions for Creating a WordPress network using Multisite at https://codex.www.ads-software.com/Create_A_Network. After the Multi-SIte activation, the root site still worked, although I had to modify /wp-includes/link-template.php to fix the network path that had been statically set as wp-admin/network/.

    Using the admin dashboard, I created a new subsite called “aaaa”. The install appeared to have gone well. The site shows up in the Site menu. The Siteurl and Home are both set to server.domain.com/aaaa. When I visit the Siteurl, however, I see the Hello World home page content, but it is not formatted. It looks like straight vanilla HTML text with hyperlinks. I went in and made sure that a theme was selected at the subsite level. My root site is using Twenty Fifteen, so I configured the subsite to use the Twenty Thirteen theme just to force a change. Still no luck ?? . The home page of the site is not being formatted.

    The other problem is trying to access the admin dashboard of the subsite. The Subsite’s menu points me to a URL of server.domain.com/aaaa/wp-admin, which is what I would have expected. The problem is that I get a 404 error when I browse there ?? .

    Any tips from the experts out there? I can include my web.config file if it helps, but I just used what WordPress said to use during the MultiSite activation process.

    Thanks In Advance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter mhummel

    (@mhummel)

    Follow-up. Here are the contents of my web.config file. It is located in the root folder of the IIS server at E:\Inetpub\WWWRoot\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-]+/)?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="E:/Inetpub/WWWRoot/wordpress/{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="E:/Inetpub/WWWRoot/wordpress/{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>
    GSATech

    (@gsatech)

    Try changing

    <rule name="WordPress Rule 4" stopProcessing="true">
                        <match url="^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*)" ignoreCase="false" />
                        <action type="Rewrite" url="E:/Inetpub/WWWRoot/wordpress/{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="E:/Inetpub/WWWRoot/wordpress/{R:2}" />
                    </rule></em>
    
    to
    
    <em>                <rule name="WordPress Rule 4" stopProcessing="true">
                        <match url="^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*)" ignoreCase="false" />
                        <action type="Rewrite" url="E:/Inetpub/WWWRoot/wordpress/{R:2}" />
                    </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="E:/Inetpub/WWWRoot/wordpress/{R:1}" />
                    </rule>
    Thread Starter mhummel

    (@mhummel)

    Hello GSATech,

    Thank you for your suggestion. I tried the substitution you suggested for the web.config file. Unfortunately, my results are still the same. I even restarted the webserver just to make sure there were no cache issues.

    Any other ideas or suggestions?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Subfolder Multisite activation on IIS is not working’ is closed to new replies.