﻿<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <system.webServer>
    <rewrite>
      <rules>
        <rule name="Redirect www to apex" stopProcessing="true">
          <match url="(.*)" />
          <conditions>
            <add input="{HTTP_HOST}" pattern="^www\.elmearagcenters\.com$" />
          </conditions>
          <action type="Redirect" url="https://elmearagcenters.com/{R:1}" redirectType="Permanent" />
        </rule>
        <rule name="Elmeraj Reverse Proxy" stopProcessing="true">
          <match url="(.*)" />
          <conditions>
            <add input="{HTTP_HOST}" pattern="^(elmearagcenters\.com|www\.elmearagcenters\.com)$" />
          </conditions>
          <action type="Rewrite" url="http://127.0.0.1:3010/{R:1}" />
        </rule>
      </rules>
    </rewrite>
    <httpProtocol>
      <customHeaders>
        <remove name="X-Powered-By" />
      </customHeaders>
    </httpProtocol>
  </system.webServer>
</configuration>
