• Hello,

    I′m currently using WP on a IIS server cause my job is 100% Microsoft based, and obviously we use C#, SQL Server and IIS Server. I′ve installed WP normally with no erros. I′m testing some stuffts to implement Multi Sites for aprox. 40 blogs. So.. i have a problem: websites can′t use subdomain on IIS, if i change WP configs to enable subdomain use it simple don′t work. I′m using folder structure for tests and i have the layout error, layout mount wrong URL for includes and i can′t acess WP-ADMIN of children sites. What it could be? i didn′t find info about WP on IIS on web, can some one help me?

    Look the blog: https://blog.iasp.br/
    Created Blog: https://blog.iasp.br/blog2/ (look that this dont′t work as the main installed one do).

    Acess to WP painel: https://blog.iasp.br/wp-admin/
    User: help
    pass: 123
    (super admin actived)

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter alexandre.cruz

    (@alexandrecruz)

    NOTE: the WP Default install works 100% great. Just sites created with WP MU dont′w work.

    Question: Can I have a Apache server separated from this to receive the requestions of pages and return from apache and note from IIS?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    On IIS you have to update your re-write rules. Did you do that?

    Thread Starter alexandre.cruz

    (@alexandrecruz)

    Yeah, i did. When i′ve installed WP i make everthing same way i do on apache… the rewrite rule is this below:

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

    Everthing looks ok. i will check the install again and try other way.
    waiting reply, thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Problems with WP on IIS’ is closed to new replies.