Skip to content

Instantly share code, notes, and snippets.

@imemohit
Forked from jonahvsweb/web.config
Last active August 29, 2015 14:08
Show Gist options
  • Save imemohit/555282fa43095a0a157c to your computer and use it in GitHub Desktop.
Save imemohit/555282fa43095a0a157c to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="wordpress" 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" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment