Skip to content

Instantly share code, notes, and snippets.

@grim-reapper
Forked from jonahvsweb/web.config
Created February 22, 2016 14:02
Show Gist options
  • Save grim-reapper/796b56163afd12ddea83 to your computer and use it in GitHub Desktop.
Save grim-reapper/796b56163afd12ddea83 to your computer and use it in GitHub Desktop.
How to Setup WordPress Permalinks on Windows IIS ======================================= Place this file into the base directory of your WordPress installation to allow permalinks (or "pretty URLs") on Windows IIS.
<?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