IIS Windows WordPress pretty urls - mhulse/mhulse.github.io GitHub Wiki
Now that THAT’s out of the way …
- On Windows, open application “Server Manager”.
- Open Web Platform Installer and searched
URL ReWrite 2.0
, make sure it’s installed. - At the root level of your WordPress installation, next to your
.htaccess
, open or create a file namedWeb.config
and add this:
<?xml version="1.0" encoding="UTF-8"?>
<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>
- Save
Web.config
and push to your server.
Done!