• Resolved issaaccbb

    (@issaaccbb)


    Hello!

    I know that I am probably asking the same question and have the same problem that everyone else seems to have. But I looked through 3 pages and didn’t see what I needed. So here goes.

    I need a multisite wordpress. So I installed it cleanly; fresh DB, no themes (except what came with WP) and no plugins. Its hosted locally and I can use the base site normally. “wordpress.example.com” is the base install with directory network used. So my next site is “wordpress.example.com/metal”
    This doesn’t work.
    The content is the only thing that loads which seems to be a copy of the base site. No themes are loaded. Also, WP-ADMIN does not work. I get a 404 error.

    I have updated the web.config as per wordpress instructions and its wrong somehow. Please advise, thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter issaaccbb

    (@issaaccbb)

    Solved my own problem. Apparently, I didn’t look back far enough because I thought my problems was new enough. lol, well here is the solution.
    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>

    That was pulled from
    Yeah, hope this helps people.

    Thank you soooo much!! I have been beating my head against a wall trying to figure this out. Now I just need to figure out why new users are not getting an email from my server when they are setup.

    Thanks! This helped a great deal!

    Can anybody tell me.
    where should i create

    web.config File

    exactly?

    Ahh, I really appreciate this issaaccbb!

    Tried to rewrite the rules myself I could not get it to work, this solved all my problems! Running smoothly on IIS8 with directory-sub-sites.

    I do not get it, why do the bloody 5 min install supply the wrong URL rewrite rules ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Multisite on IIS’ is closed to new replies.