Skip to content

Instantly share code, notes, and snippets.

@tanerdogan
Created April 20, 2016 13:18
Show Gist options
  • Save tanerdogan/174f22f4ac29ca50537dbcc9d1245e9e to your computer and use it in GitHub Desktop.
Save tanerdogan/174f22f4ac29ca50537dbcc9d1245e9e to your computer and use it in GitHub Desktop.
Slim Framework IIS URL Rewrite Config
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="slim" patternSyntax="Wildcard">
<match url="*" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="index.php" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
@talhakamran
Copy link

Guys make sure the urlRewrite module for IIS is installed :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment