<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <system.webServer>
    <httpRedirect enabled="false" />
    <defaultDocument enabled="true">
      <files>
        <clear />
        <add value="index.php" />
        <add value="index.html" />
      </files>
    </defaultDocument>
    <rewrite>
      <rules>
        <rule name="Skip existing files and directories" stopProcessing="true">
          <match url=".*" />
          <conditions logicalGrouping="MatchAny">
            <add input="{REQUEST_FILENAME}" matchType="IsFile" />
            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" />
          </conditions>
          <action type="None" />
        </rule>
        <rule name="br-extensionless-php" stopProcessing="true">
          <match url="^br/([a-z0-9-]+)/?$" />
          <conditions>
            <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
            <add input="{APPL_PHYSICAL_PATH}br\{R:1}.php" matchType="IsFile" />
          </conditions>
          <action type="Rewrite" url="br/{R:1}.php" appendQueryString="true" />
        </rule>
        <rule name="empresa" stopProcessing="true">
          <match url="^empresa/?$" />
          <action type="Rewrite" url="empresa.php" appendQueryString="true" />
        </rule>
        <rule name="mision-vision-valores" stopProcessing="true">
          <match url="^mision-vision-valores/?$" />
          <action type="Rewrite" url="mision-vision-valores.php" appendQueryString="true" />
        </rule>
        <rule name="sustentabilidad" stopProcessing="true">
          <match url="^sustentabilidad/?$" />
          <action type="Rewrite" url="sustentabilidad.php" appendQueryString="true" />
        </rule>
        <rule name="accesos" stopProcessing="true">
          <match url="^accesos/?$" />
          <action type="Rewrite" url="accesos.php" appendQueryString="true" />
        </rule>
        <rule name="cartelera" stopProcessing="true">
          <match url="^cartelera/?$" />
          <action type="Rewrite" url="cartelera.php" appendQueryString="true" />
        </rule>
        <rule name="cctv" stopProcessing="true">
          <match url="^cctv/?$" />
          <action type="Rewrite" url="cctv.php" appendQueryString="true" />
        </rule>
        <rule name="compras" stopProcessing="true">
          <match url="^compras/?$" />
          <action type="Rewrite" url="compras.php" appendQueryString="true" />
        </rule>
        <rule name="mesaportuaria" stopProcessing="true">
          <match url="^mesaportuaria/?$" />
          <action type="Rewrite" url="mesaportuaria.php" appendQueryString="true" />
        </rule>
        <rule name="it" stopProcessing="true">
          <match url="^it/?$" />
          <action type="Rewrite" url="networking.php" appendQueryString="true" />
        </rule>
        <rule name="puertodigital" stopProcessing="true">
          <match url="^puertodigital/?$" />
          <action type="Rewrite" url="puertos.php" appendQueryString="true" />
        </rule>
        <rule name="rrhh" stopProcessing="true">
          <match url="^rrhh/?$" />
          <action type="Rewrite" url="rrhh.php" appendQueryString="true" />
        </rule>
        <rule name="digitalizacion" stopProcessing="true">
          <match url="^digitalizacion/?$" />
          <action type="Rewrite" url="digitalizacion.php" appendQueryString="true" />
        </rule>
        <rule name="despapelizacion" stopProcessing="true">
          <match url="^despapelizacion/?$" />
          <action type="Rewrite" url="despapelizacion.php" appendQueryString="true" />
        </rule>
        <rule name="security" stopProcessing="true">
          <match url="^security/?$" />
          <action type="Rewrite" url="security.php" appendQueryString="true" />
        </rule>
        <rule name="software" stopProcessing="true">
          <match url="^software/?$" />
          <action type="Rewrite" url="software.php" appendQueryString="true" />
        </rule>
        <rule name="tarjetaciudadana" stopProcessing="true">
          <match url="^tarjetaciudadana/?$" />
          <action type="Rewrite" url="tarjetaciudadana.php" appendQueryString="true" />
        </rule>
        <rule name="wms" stopProcessing="true">
          <match url="^wms/?$" />
          <action type="Rewrite" url="wms.php" appendQueryString="true" />
        </rule>
        <rule name="clientes" stopProcessing="true">
          <match url="^clientes/?$" />
          <action type="Rewrite" url="clientes.php" appendQueryString="true" />
        </rule>
        <rule name="contacto" stopProcessing="true">
          <match url="^contacto/?$" />
          <action type="Rewrite" url="contacto.php" appendQueryString="true" />
        </rule>
        <rule name="empleos" stopProcessing="true">
          <match url="^empleos/?$" />
          <action type="Rewrite" url="empleos.php" appendQueryString="true" />
        </rule>
        <rule name="about-us" stopProcessing="true">
          <match url="^about-us/?$" />
          <action type="Rewrite" url="about-us.php" appendQueryString="true" />
        </rule>
        <rule name="autoconsulta" stopProcessing="true">
          <match url="^autoconsulta/?$" />
          <action type="Rewrite" url="autoconsulta.php" appendQueryString="true" />
        </rule>
        <rule name="expo" stopProcessing="true">
          <match url="^expo/?$" />
          <action type="Rewrite" url="expo.php" appendQueryString="true" />
        </rule>
        <rule name="oldIndex-mision-vision-valores" stopProcessing="true">
          <match url="^oldIndex/mision-vision-valores/?$" />
          <action type="Rewrite" url="oldIndex/mision-vision-valores.php" appendQueryString="true" />
        </rule>
        <rule name="oldIndex-sustentabilidad" stopProcessing="true">
          <match url="^oldIndex/sustentabilidad/?$" />
          <action type="Rewrite" url="oldIndex/sustentabilidad.php" appendQueryString="true" />
        </rule>
        <rule name="oldIndex-it" stopProcessing="true">
          <match url="^oldindex/it/?$" />
          <action type="Rewrite" url="oldIndex/networking.php" appendQueryString="true" />
        </rule>
        <rule name="oldIndex-puertodigital" stopProcessing="true">
          <match url="^oldindex/puertodigital/?$" />
          <action type="Rewrite" url="oldIndex/puertos.php" appendQueryString="true" />
        </rule>
        <rule name="oldIndex-extensionless-php" stopProcessing="true">
          <match url="^oldindex/([a-z0-9-]+)/?$" />
          <conditions>
            <add input="{APPL_PHYSICAL_PATH}oldIndex\{R:1}.php" matchType="IsFile" />
          </conditions>
          <action type="Rewrite" url="oldIndex/{R:1}.php" appendQueryString="true" />
        </rule>
      </rules>
    </rewrite>
  </system.webServer>
</configuration>