<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>
            <rules>
            	<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="rule 1L" stopProcessing="true">
					<match url="^(.*)$" ignoreCase="true" />
					<conditions>
						 <add input="{REQUEST_URI}" pattern="^/.well-known" ignoreCase="false" negate="true" />
						 <add input="{REQUEST_URI}" pattern="^/admin" ignoreCase="false" negate="true" />
						 <add input="{REQUEST_URI}" pattern="^/control" ignoreCase="false" negate="true" />
						 <add input="{REQUEST_URI}" pattern="^/af" ignoreCase="false" negate="true" />
						 <add input="{REQUEST_URI}" pattern="^/php" ignoreCase="false" negate="true" />
						 <add input="{REQUEST_URI}" pattern="^/php/contact-form.php" ignoreCase="false" negate="true" />
						 <add input="{REQUEST_URI}" pattern="^/index.html" ignoreCase="false" negate="true" />
						 <add input="{REQUEST_URI}" pattern="^/index.php" ignoreCase="false" negate="true" />
						 <add input="{REQUEST_URI}" pattern="^/$" ignoreCase="true" negate="true" />
						 <add input="{REQUEST_URI}" pattern="^/teste.php" ignoreCase="false" negate="true" />
						 <add input="{REQUEST_URI}" pattern="\.(png|jpg|gif|jpeg|bmp|css|js|less|scss|coffee|ttf|woff|woff2|eot|svg|map|txt|pdf|ico|mp4|mpg|div|mp3|ogg|html)" ignoreCase="true" negate="true" />
					</conditions>
					<action type="Rewrite" url="//index.php?URL={R:1}"  />
				</rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>