Last active
July 20, 2017 03:19
-
-
Save thanhdevapp/fb83f25056bd1cbab7fa725cd0ecb751 to your computer and use it in GitHub Desktop.
Web config laravel 5x IIS hosting plesk 17
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<configuration> | |
<system.webServer> | |
<security> | |
<requestFiltering allowDoubleEscaping="True" /> | |
</security> | |
<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"> | |
<match url="^(.*)$" ignoreCase="false" /> | |
<action type="Rewrite" url="/public/{R:1}" /> | |
</rule> | |
<rule name="Imported Rule 2" stopProcessing="true"> | |
<match url="^(.*)$" /> | |
<conditions logicalGrouping="MatchAll"> | |
<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="public/index.php/{R:1}" /> | |
</rule> | |
</rules> | |
</rewrite> | |
</system.webServer> | |
</configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment