Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
30 additions
and
20 deletions.
There are no files selected for viewing
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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,21 +1,31 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | <?xml version="1.0" encoding="UTF-8"?> | ||
<configuration> | <configuration> | ||
<system.webServer> | <system.webServer> | ||
<rewrite> | <handlers> | ||
<rules> | <add name="deny ini" verb="*" path="*.ini" type="System.Web.HttpForbiddenHandler" /> | ||
<rule name="Fizyczne zasoby" stopProcessing="true"> | </handlers> | ||
<match url="^.*$" /> | <rewrite> | ||
<conditions logicalGrouping="MatchAny"> | <rules> | ||
<add input="{REQUEST_FILENAME}" matchType="IsFile" pattern="" ignoreCase="false" /> | <rule name="Don't rewrite physical files" stopProcessing="true"> | ||
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" pattern="" ignoreCase="false" /> | <match url="((extensions|libraries).*|\.(js|ico|gif|jpg|png|css|php|swf|json))$" /> | ||
</conditions> | <conditions logicalGrouping="MatchAny"> | ||
<action type="None" /> | <add input="{REQUEST_FILENAME}" matchType="IsFile" pattern="" ignoreCase="false" /> | ||
</rule> | <add input="{REQUEST_FILENAME}" matchType="IsDirectory" pattern="" ignoreCase="false" /> | ||
<rule name="Rewrite" stopProcessing="true"> | </conditions> | ||
<match url="^.*$" /> | <action type="None" /> | ||
<action type="Rewrite" url="index.php" /> | </rule> | ||
</rule> | <rule name="Redirect favicon" stopProcessing="true"> | ||
</rules> | <match url="^favicon\.(.*)$" /> | ||
</rewrite> | <action type="Redirect" url="application/favicon.{R:1}" /> | ||
</system.webServer> | </rule> | ||
<rule name="Rewrite" stopProcessing="true"> | |||
<match url="^.*$" /> | |||
<serverVariables> | |||
<set name="ONTOWIKI_APACHE_MOD_REWRITE_ENABLED" value="true" /> | |||
</serverVariables> | |||
<action type="Rewrite" url="index.php" /> | |||
</rule> | |||
</rules> | |||
</rewrite> | |||
</system.webServer> | |||
</configuration> | </configuration> |