File: D:/HostingSpaces/SBogers10/bni.komma.pro/wwwroot/web.config
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<directoryBrowse enabled="false" />
<rewrite>
<rules>
<rule name="Allow LetsEncrypt" patternSyntax="Wildcard" stopProcessing="true">
<match url=".well-known/acme-challenge/*" />
<action type="None" />
</rule>
<rule name="Redirect everything to" patternSyntax="Wildcard" stopProcessing="true">
<match url="*" />
<conditions logicalGrouping="MatchAny">
<add input="{HTTP_HOST}" pattern="bni.komma.pro" negate="true" /> <!-- Check for with or without www -->
<add input="{HTTPS}" pattern="off" ignoreCase="true" /> <!-- Check for https -->
</conditions>
<action type="Redirect" url="https://bni.komma.pro/{R:0}" /> <!-- Redirect to desired domain -->
</rule>
<rule name="Imported Rule 2">
<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>
<defaultDocument>
<files>
<clear />
<add value="index.php" />
<add value="Default.asp" />
<add value="index.htm" />
<add value="Default.htm" />
<add value="index.html" />
<add value="Default.aspx" />
</files>
</defaultDocument>
</system.webServer>
</configuration>