Create web.config file for WordPress in IIS server

Create web.config file for WordPress in IIS server

Step 1: Create web.config file for WordPress in IIS server 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="”*”"></match>
<conditions>
<add input="”{REQUEST_FILENAME}”" matchtype="”IsFile”" negate="”true”"></add>
<add input="”{REQUEST_FILENAME}”" matchtype="”IsDirectory”" negate="”true”"></add>
</conditions>
<action type="”Rewrite”" url="”index.php”"></action>
</rule>
</rules>
</rewrite>
</system.webserver>
</configuration>

And You are done! . Please ask here if any question. For Coding examples I them in really short blog because for such blog posts all that matter is correct code.

Leave a Comment