fbpx
Loading

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

<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>

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