alexandre.cruz
Member
Posted 1 year ago #
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: http://blog.iasp.br/
Created Blog: http://blog.iasp.br/blog2/ (look that this dont´t work as the main installed one do).
Acess to WP painel: http://blog.iasp.br/wp-admin/
User: help
pass: 123
(super admin actived)
alexandre.cruz
Member
Posted 1 year ago #
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?
On IIS you have to update your re-write rules. Did you do that?
alexandre.cruz
Member
Posted 1 year ago #
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.