HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/BOoms/pro-oils.be/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="{HTTPS}" pattern="off" ignoreCase="true" /><!-- Check for https -->
                        </conditions>
                   <action type="Redirect" url="https://{HTTP_HOST}/{R:0}" /><!-- Redirect to desired domain -->
             </rule>
<!-- following rule added for WordPress un-ugly Permalinks -->
			 <rule name="Main Rule" stopProcessing="true">
				<match url=".*" />
				<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" />
            </files>
        </defaultDocument>
        <httpErrors errorMode="DetailedLocalOnly" existingResponse="Auto" />

  </system.webServer>
</configuration>