Нужно настроить Yii2 advanced на iis?
Вот мои web.config, в корне:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<directoryBrowse enabled="false" />
<rewrite>
<rules>
<rule name="rule 1l" stopProcessing="true">
<match url="^secure(.*)?$" />
<action type="Rewrite" url="backend/web/{R:1}" />
</rule>
<rule name="rule 2l">
<match url="^([^/].*)?$" />
<action type="Rewrite" url="frontend/web/{R:1}" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
и во frontend/web :
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<directoryBrowse enabled="false" />
<rewrite>
<rules>
<rule name="Hide Yii Index" stopProcessing="true">
<match url="." ignoreCase="false" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile"
ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory"
ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="index.php" appendQueryString="true" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
Главная работает, а остальные страницы выдают 404 ошибку.