Skip to content

Instantly share code, notes, and snippets.

@devfred
Created February 19, 2014 18:01
Show Gist options
  • Save devfred/9097648 to your computer and use it in GitHub Desktop.
Save devfred/9097648 to your computer and use it in GitHub Desktop.
XML: WM_Mod_Rewrite_web.config.xml
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<connectionStrings>
<add connectionString="" name="" providerName="MySql.Data.MySqlClient" />
</connectionStrings>
<system.webServer>
<defaultDocument>
<files>
<clear />
<add value="index.php" />
</files>
</defaultDocument>
<rewrite>
<rules>
<rule name="Main Rule" stopProcessing="true">
<match url=".*" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="index.php/{R:0}" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment