Created
March 22, 2018 16:50
-
-
Save nicolabavaro/def45e345ccee80a1d9a363055b5923f to your computer and use it in GitHub Desktop.
Laravel & 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