Skip to content

Instantly share code, notes, and snippets.

@talves
Created November 5, 2013 21:45
Show Gist options
  • Select an option

  • Save talves/7326910 to your computer and use it in GitHub Desktop.

Select an option

Save talves/7326910 to your computer and use it in GitHub Desktop.
A Wordpress IIS7+ minimum web.config for rewriting urls
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="wordpress" 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment