Created
May 23, 2018 20:41
-
-
Save marklj/eac954b3f95fc280141ab9c253f78bf3 to your computer and use it in GitHub Desktop.
IIS laravel web.config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <configuration> | |
| <system.webServer> | |
| <defaultDocument> | |
| <files> | |
| <clear /> | |
| <add value="index.php" /> | |
| <add value="default.aspx" /> | |
| <add value="Default.htm" /> | |
| <add value="Default.asp" /> | |
| <add value="index.htm" /> | |
| <add value="index.html" /> | |
| </files> | |
| </defaultDocument> | |
| <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> | |
| <httpErrors errorMode="Detailed" /> | |
| </system.webServer> | |
| </configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment