﻿<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <system.webServer>
    <directoryBrowse enabled="true" />
    <rewrite>
      <rules>
        <rule name="ignore web forms folder 1" stopProcessing="true">
          <match url="^media/" />
          <action type="None" />
        </rule>
        <rule name="ignore web forms folder 2" stopProcessing="true">
          <match url="^vendor/" />
          <action type="None" />
        </rule>
        <rule name="ignore web forms folder 3" stopProcessing="true">
          <match url="^online-katalog/" />
          <action type="None" />
        </rule>
        <rule name="ignore web forms folder 4" stopProcessing="true">
          <match url="^backend/" />
          <action type="None" />
        </rule>
        <rule name="rule 4x" stopProcessing="true">
          <match url="^ea-admin/(.*)$" />
          <action type="Rewrite" url="/backend/web/{R:1}" />
        </rule>
        <rule name="Yii2 Routing that works" stopProcessing="false">
          <match url=".*" />
          <conditions logicalGrouping="MatchAll" trackAllCaptures="false">
            <add input="{REQUEST_FILENAME}" pattern="css|js|jpg|jpeg|png|gif|ico|htm|html|ttf|woff2|woff|eot" negate="true" />
            <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" appendQueryString="true" />
        </rule>
        <rule name="rule 3x" stopProcessing="false">
          <match url="^(.*)$" />
          <action type="Rewrite" url="/frontend/web/{R:1}" />
        </rule>
      </rules>
    </rewrite>
    <httpErrors>
      <remove statusCode="502" subStatusCode="-1" />
      <remove statusCode="501" subStatusCode="-1" />
      <remove statusCode="500" subStatusCode="-1" />
      <remove statusCode="412" subStatusCode="-1" />
      <remove statusCode="406" subStatusCode="-1" />
      <remove statusCode="405" subStatusCode="-1" />
      <remove statusCode="404" subStatusCode="-1" />
      <remove statusCode="403" subStatusCode="-1" />
      <remove statusCode="401" subStatusCode="-1" />
      <remove statusCode="400" />
      <error statusCode="400" path="F:\Inetpub\vhosts\lightport.com.tr\error_docs\bad_request.html" />
      <remove statusCode="407" />
      <error statusCode="407" path="F:\Inetpub\vhosts\lightport.com.tr\error_docs\proxy_authentication_required.html" />
      <remove statusCode="414" />
      <error statusCode="414" path="F:\Inetpub\vhosts\lightport.com.tr\error_docs\request-uri_too_long.html" />
      <remove statusCode="415" />
      <error statusCode="415" path="F:\Inetpub\vhosts\lightport.com.tr\error_docs\unsupported_media_type.html" />
      <remove statusCode="503" />
      <error statusCode="503" path="F:\Inetpub\vhosts\lightport.com.tr\error_docs\maintenance.html" />
      <error statusCode="401" prefixLanguageFilePath="" path="F:\Inetpub\vhosts\lightport.com.tr\error_docs\unauthorized.html" />
      <error statusCode="403" prefixLanguageFilePath="" path="F:\Inetpub\vhosts\lightport.com.tr\error_docs\forbidden.html" />
      <error statusCode="404" prefixLanguageFilePath="" path="F:\Inetpub\vhosts\lightport.com.tr\error_docs\not_found.html" />
      <error statusCode="405" prefixLanguageFilePath="" path="F:\Inetpub\vhosts\lightport.com.tr\error_docs\method_not_allowed.html" />
      <error statusCode="406" prefixLanguageFilePath="" path="F:\Inetpub\vhosts\lightport.com.tr\error_docs\not_acceptable.html" />
      <error statusCode="412" prefixLanguageFilePath="" path="F:\Inetpub\vhosts\lightport.com.tr\error_docs\precondition_failed.html" />
      <error statusCode="500" prefixLanguageFilePath="" path="F:\Inetpub\vhosts\lightport.com.tr\error_docs\internal_server_error.html" />
      <error statusCode="501" prefixLanguageFilePath="" path="F:\Inetpub\vhosts\lightport.com.tr\error_docs\not_implemented.html" />
      <error statusCode="502" prefixLanguageFilePath="" path="F:\Inetpub\vhosts\lightport.com.tr\error_docs\bad_gateway.html" />
    </httpErrors>
  </system.webServer>
  <system.web>
    <compilation tempDirectory="F:\Inetpub\vhosts\lightport.com.tr\tmp" />
  </system.web>
</configuration>