File: D:/HostingSpaces/SBogers95/rentman.io/wwwroot/web.config
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<defaultDocument>
<files>
<clear />
<add value="index.php" />
<add value="default.aspx" />
<add value="Default.htm" />
<add value="Default.asp" />
<add value="index.htm" />
<add value="index.html" />
</files>
</defaultDocument>
<rewrite>
<rules>
<rule name="Allow LetsEncrypt" patternSyntax="Wildcard" stopProcessing="true">
<match url=".well-known/acme-challenge/*" />
<action type="None" />
</rule>
<!-- -->
<!-- BECAUSE RENTMAN USES ITS OWN SERVER THERE REDIRECT FROM WWW IS IN THE MIDDLEWARE-->
<!-- -->
<!-- <rule name="Redirect everything to Https without www" patternSyntax="Wildcard" stopProcessing="true">-->
<!-- <match url=".*" ignoreCase="true" />-->
<!-- <conditions logicalGrouping="MatchAny">-->
<!-- <add input="{HTTP_HOST}" pattern="^www\.(.*)$" />-->
<!-- <add input="{HTTPS}" pattern="off" />-->
<!-- </conditions>-->
<!-- <action type="Redirect" url="https://{C:1}/{R:0}" appendQueryString="true" redirectType="Permanent" />-->
<!-- </rule>-->
<!-- <rule name="Redirect everything to" patternSyntax="Wildcard" stopProcessing="true">-->
<!-- <match url="*"/>-->
<!-- <conditions logicalGrouping="MatchAny">-->
<!-- <add input="{HTTP_HOST}" pattern="www.rentman2019.komma.pro"/>-->
<!-- </conditions>-->
<!-- <action type="Redirect" url="http://rentman2019.komma.pro/{R:0}"/>-->
<!-- </rule>-->
<!-- <rule name="Remove WWW" stopProcessing="true">-->
<!-- <match url=".*" ignoreCase="true" />-->
<!-- <conditions logicalGrouping="MatchAll">-->
<!-- <add input="{HTTP_HOST}" pattern="^www\.(.*)$" />-->
<!-- </conditions>-->
<!-- <action type="Redirect" url="https://{C:1}/{R:0}" appendQueryString="true" redirectType="Permanent" />-->
<!-- </rule>-->
<!-- <rule name="Add Https" stopProcessing="true">-->
<!-- <match url=".*" ignoreCase="true" />-->
<!-- <conditions logicalGrouping="MatchAll">-->
<!-- <add input="{HTTPS}" pattern="off" ignoreCase="true" />-->
<!-- </conditions>-->
<!-- <action type="Redirect" url="https://{C:1}/{R:0}" appendQueryString="true" redirectType="Permanent" />-->
<!-- </rule>-->
<rule name="Remove trailing slash" stopProcessing="true">
<match url="(.*)/$" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Redirect" redirectType="Permanent" url="{R:1}" />
</rule>
<rule name="Redirect index.php to root" stopProcessing="true">
<match url="^index.php" />
<action type="Redirect" url="/" />
</rule>
<rule name="Laravel" stopProcessing="true">
<match url="^(.*)$" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="/index.php/{R:1}" />
</rule>
</rules>
</rewrite>
<httpErrors>
<remove statusCode="403" subStatusCode="-1" />
<error statusCode="403" prefixLanguageFilePath="" path="/index.php/404" responseMode="ExecuteURL" />
</httpErrors>
<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>