Skip to content

Instantly share code, notes, and snippets.

@jonahvsweb
Created April 29, 2013 03:38
Show Gist options
  • Star 15 You must be signed in to star a gist
  • Fork 9 You must be signed in to fork a gist
  • Save jonahvsweb/5479580 to your computer and use it in GitHub Desktop.
Save jonahvsweb/5479580 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>
@jeremymoore
Copy link

This was so helpful... I ended up creating a slightly different version for my situation where Wordpress was in a subdirectory and where I needed the REST api to be reachable. https://gist.github.com/jeremymoore/82bebfbf164a07f63ea3ef4cdf5a1cd7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment