web.config for WordPress in IIS

You can use this web.config file directly on the root folder in order to host the WordPress website in the IIS Server. This web.config for WordPress does all the stuffs. I will be explaining the content in this file, if you want the detailed knowledge.

<?xml version="1.0" encoding="UTF-8"?>
                <clear />
                <add value="index.php" />
                <clear />
                <rule name="WordPress Rule" stopProcessing="true">
                    <match url=".*" />
                    <conditions logicalGrouping="MatchAll" trackAllCaptures="false">
                        <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
                    <action type="Rewrite" url="index.php" />
                <clear />

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: