Skip to content

Instantly share code, notes, and snippets.

@ricardoriogo
Created June 3, 2013 23:02
Show Gist options
  • Save ricardoriogo/5702216 to your computer and use it in GitHub Desktop.
Save ricardoriogo/5702216 to your computer and use it in GitHub Desktop.
Exemplo de web.config rewrite
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Clean URL" stopProcessing="true">
<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/{R:1}" appendQueryString="false" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment