Skip to content

Instantly share code, notes, and snippets.

@teckx5
Forked from jonahvsweb/web.config
Created October 15, 2015 10:49
Show Gist options
  • Save teckx5/63b26ad2c0936e0a1c77 to your computer and use it in GitHub Desktop.
Save teckx5/63b26ad2c0936e0a1c77 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