File: D:/HostingSpaces/yoda-ict/yoda-ict.nl/wwwroot/web.config
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Allow LetsEncrypt" patternSyntax="Wildcard" stopProcessing="true">
<match url=".well-known/acme-challenge/*" />
<action type="None" />
</rule>
<rule name="Redirect to https" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{HTTPS}" pattern="off" ignoreCase="true" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" redirectType="Permanent" appendQueryString="false" />
</rule>
<rule name="Diensten" stopProcessing="true">
<match url="^(.*)" />
<conditions logicalGrouping="MatchAll">
<add input="{URL}" pattern="^/diensten/$" ignoreCase="false" />
</conditions>
<action type="Rewrite" url="/index.php" />
</rule>
<rule name="Sitemap" stopProcessing="true">
<match url="^(.*)" />
<conditions logicalGrouping="MatchAll">
<add input="{URL}" pattern="^/sitemap.xml$" ignoreCase="false" />
</conditions>
<action type="Rewrite" url="/sitemap.xml.php" />
</rule>
<rule name="Robots" stopProcessing="true">
<match url="^(.*)" />
<conditions logicalGrouping="MatchAll">
<add input="{URL}" pattern="^/robots.txt$" ignoreCase="false" />
</conditions>
<action type="Rewrite" url="/robots.txt.php" />
</rule>
<rule name="AllPagesToIndex">
<match url="^(.*)" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<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>
<directoryBrowse enabled="false" />
<defaultDocument>
<files>
<clear />
<add value="index.php" />
</files>
</defaultDocument>
<httpErrors errorMode="DetailedLocalOnly" existingResponse="Auto" />
<handlers>
<remove name="php-7.4" />
<remove name="php-7.2" />
<remove name="php-7.1" />
<!--<remove name="php-5.6" /> -->
</handlers>
</system.webServer>
</configuration>