Skip to content

Commit

Permalink
IIS 対応のため web.default.config を更新
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuring committed Mar 24, 2024
1 parent 63e111b commit afb243b
Showing 1 changed file with 9 additions and 16 deletions.
25 changes: 9 additions & 16 deletions web.default.config
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,17 @@
<system.webServer>
<rewrite>
<rules>
<clear />
<rule name="Imported Rule 3" stopProcessing="true">
<match url="^$" ignoreCase="false" />
<conditions logicalGrouping="MatchAll" />
<action type="Rewrite" url="/" />
<rule name="Exclude direct access to webroot/*" stopProcessing="true">
<match url="^webroot/(.*)$" ignoreCase="false" />
<action type="None" />
</rule>
<rule name="Imported Rule 4" stopProcessing="false">
<match url="(.*)" ignoreCase="false" />
<conditions logicalGrouping="MatchAll" />
<action type="Rewrite" url="/webroot/{R:1}" />
<rule name="Rewrite routed access to assets(img, css, files, js, favicon)" stopProcessing="true">
<match url="^(font|img|css|files|js|favicon.ico)(.*)$" />
<action type="Rewrite" url="webroot/{R:1}{R:2}" appendQueryString="false" />
</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 name="Rewrite requested file/folder to index.php" stopProcessing="true">
<match url="^(.*)$" ignoreCase="false" />
<action type="Rewrite" url="index.php" appendQueryString="true" />
</rule>
</rules>
</rewrite>
Expand Down

0 comments on commit afb243b

Please sign in to comment.