Skip to content

Commit

Permalink
Merge pull request #3910 from restored18/master
Browse files Browse the repository at this point in the history
Add web.config for IIS
  • Loading branch information
taylorotwell committed Aug 26, 2016
2 parents 63e0cdc + 366f8ab commit 1cb19ac
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions public/web.config
@@ -0,0 +1,23 @@
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Imported Rule 1" stopProcessing="true">
<match url="^(.*)/$" ignoreCase="false" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
</conditions>
<action type="Redirect" redirectType="Permanent" url="/{R:1}" />
</rule>
<rule name="Imported Rule 2" stopProcessing="true">
<match url="^" ignoreCase="false" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="index.php" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>

0 comments on commit 1cb19ac

Please sign in to comment.