Enable Permalinks for WordPress Install using web.config on IIS Server

.htaccess won’t work on IIS Server so permalinks don’t work properly. For that, we need following steps to make it work.

Step 1: Create a web.config file on the root folder of WordPress installation if it does not exist.

Step 2: Use Paste following code

<rule name=”wordpress” patternSyntax=”Wildcard”>
<match url=”*” />
<add input=”{REQUEST_FILENAME}” matchType=”IsFile” negate=”true” />
<add input=”{REQUEST_FILENAME}” matchType=”IsDirectory” negate=”true” />
<action type=”Rewrite” url=”index.php” />

That’s it. Feel free to ask here if any question. Normally I don’t have much time for blogging so i just do everything in short.

Submit Your Comment