Skip to content

IIS Windows WordPress pretty urls

Michael Hulse edited this page Apr 17, 2015 · 10 revisions

Introduction

Uuuuuggggh, Windows

Ugh, Windows.

Now that THAT’s out of the way …

Setup

  1. On Windows, open application “Server Manager”.
  2. Open Web Platform Installer and searched URL ReWrite 2.0, make sure it’s installed.
  3. At the root level of your WordPress installation, next to your .htaccess, open or create a file named Web.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>
  1. Save Web.config and push to your server.

Done!

Links:

Clone this wiki locally