Skip to content

Commit

Permalink
IIS rewrite configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
tpluscode committed Nov 20, 2011
1 parent 9cd4006 commit da580e2
Showing 1 changed file with 30 additions and 20 deletions.
50 changes: 30 additions & 20 deletions web.config
@@ -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>

0 comments on commit da580e2

Please sign in to comment.