Hi ,
The exact code for your reference is :
<configuration>
<system.server>
<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.server>
</configuration>
By the way i have worked on so many wordpress websites never used this code, if you still have any problem please update the issue further.
Thanks