数回、再インストールを試しました…
xdebugを無効にした状態でも
http://127.0.0.1:4080/webroot/index.php
でアクセスした後は
http://127.0.0.1:4080/でもアクセス出来ることが確認できました。
よくわかってないので
IISのドキュメントルートをD:\website\iis\test4とすると
D:\website\iis\test4\index.phpの
require 'webroot' . DIRECTORY_SEPARATOR . 'index.php';
↓↓↓
//require 'webroot' . DIRECTORY_SEPARATOR . 'index.php';
header("Location: /webroot/index.php");
※タダのリダイレクト
とするか
Web.configのリライトを
<rewrite>
<rules>
<clear />
<rule name="Imported Rule 3" stopProcessing="true">
<match url="^$" ignoreCase="false" />
<conditions logicalGrouping="MatchAll" />
<action type="Rewrite" url="/" />
</rule>
<rule name="Imported Rule 4" stopProcessing="false">
<match url="(.*)" ignoreCase="false" />
<conditions logicalGrouping="MatchAll" />
<action type="Rewrite" url="/webroot/{R:1}" />
</rule>
<rule name="Imported Rule 5" stopProcessing="true">
<match url="^/webroot/(.*)$" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" pattern="" ignoreCase="false" />
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" pattern="" ignoreCase="false" />
</conditions>
<action type="Rewrite" url="webroot/index.php" appendQueryString="true" />
</rule>
</rules>
</rewrite>
↓↓↓
<rewrite>
<rules>
<clear />
<rule name="Imported Rule 3" stopProcessing="true">
<match url="^$" ignoreCase="false" />
<conditions logicalGrouping="MatchAll" />
<action type="Rewrite" url="/webroot/" />
</rule>
<rule name="Imported Rule 4" stopProcessing="false">
<match url="(.*)" ignoreCase="false" />
<conditions logicalGrouping="MatchAll" />
<action type="Rewrite" url="/webroot/{R:1}" />
</rule>
<rule name="Imported Rule 5" stopProcessing="true">
<match url="^/webroot/(.*)$" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" pattern="" ignoreCase="false" />
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" pattern="" ignoreCase="false" />
</conditions>
<action type="Rewrite" url="webroot/index.php" appendQueryString="true" />
</rule>
</rules>
</rewrite>
※Rule 3を変えただけ
で逃げれるのですが、何故基本通りでうまくいかないのは、まだ理解出来てない…