I have moved my WordPress website to a Windows server, but I am facing an issue. If I place the code for this in web.config

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

```

then website gives an error 500.19 **HTTP 500.19 Internal Server Error Config invalid**

If I remove this code from web.config then website only works on permalinks that starts with index.php like index.php/opening-timings/