<?xml version="1.0" encoding="utf-8"?>
<!--
  For more information on how to configure your ASP.NET application, please visit
  https://go.microsoft.com/fwlink/?LinkId=169433
  -->
<configuration>
  <appSettings>
    <add key="HostName" value="smtpout.secureserver.net"/>
    <add key="SMTPServerName" value="smtpout.secureserver.net"/>
    <add key="CredentialsUsername" value="support@clinsav.com"/>
    <add key="CredentialsPwd" value="Tbpasac%$#@!2022*50"/>
    <add key="SMTPPort" value="25"/>
    <add key="ToEmail" value=""/>
    <add key="ToAddress" value="support@clinsav.com"/>
  </appSettings>
  <!-- <system.web>
    <compilation targetFramework="4.7.2" />
    <httpRuntime targetFramework="4.7.2" />
    <customErrors mode="Off"></customErrors>
	
  </system.web>-->
	<location path="UserLogin/LoginAsync">
		<system.webServer>
			<httpProtocol>
				<customHeaders>
					<add name="X-Robots-Tag" value="noindex, nofollow" />
				</customHeaders>
			</httpProtocol>
		</system.webServer>
	</location>

	<location path="footer.aspx">
		<system.webServer>
			<httpProtocol>
				<customHeaders>
					<add name="X-Robots-Tag" value="noindex, nofollow" />
				</customHeaders>
			</httpProtocol>
		</system.webServer>
	</location>
  <system.web>
    <compilation debug="true" targetFramework="4.7.2" tempDirectory="D:\INETPUB\VHOSTS\supradigit.com\tmp"/>
    <httpRuntime targetFramework="4.7.2"/>
    <customErrors mode="Off" defaultRedirect="~/Error.aspx">
    </customErrors>
  </system.web>
  <system.webServer>
    <httpErrors errorMode="Custom">
      <remove statusCode="404" subStatusCode="-1"/>
      <error statusCode="404" path="/NotFound.aspx" responseMode="ExecuteURL"/>
    </httpErrors>
    <staticContent>
      <clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="30.00:00:00"/>
    </staticContent>
    <httpProtocol>
      <customHeaders>
        <add name="Cache-Control" value="public, max-age=2592000"/>
      </customHeaders>
    </httpProtocol>
  <rewrite>
  <rules>

    <!-- 1. Redirect www.clinsav.com to https://clinsav.com -->
    <rule name="Redirect WWW to Non-WWW HTTPS" stopProcessing="true">
      <match url="(.*)" />
      <conditions logicalGrouping="MatchAny">
        <add input="{HTTP_HOST}" pattern="^www\.clinsav\.com$" />
        <add input="{HTTPS}" pattern="^OFF$" />
      </conditions>
      <action
        type="Redirect"
        url="https://clinsav.com/{R:1}"
        appendQueryString="true"
        redirectType="Permanent" />
    </rule>

    <!-- 2. Redirect old index.aspx to homepage -->
    <rule name="Redirect index.aspx to homepage" stopProcessing="true">
      <match url="^index\.aspx$" ignoreCase="true" />
      <action
        type="Redirect"
        url="https://clinsav.com/"
        appendQueryString="false"
        redirectType="Permanent" />
    </rule>

    <!-- 3. Redirect old /Index to homepage -->
    <rule name="Redirect Index to homepage" stopProcessing="true">
      <match url="^Index$" ignoreCase="true" />
      <action
        type="Redirect"
        url="https://clinsav.com/"
        appendQueryString="false"
        redirectType="Permanent" />
    </rule>

    <!-- 4. Redirect old /Index.html to homepage -->
    <rule name="Redirect Index.html to homepage" stopProcessing="true">
      <match url="^Index\.html$" ignoreCase="true" />
      <action
        type="Redirect"
        url="https://clinsav.com/"
        appendQueryString="false"
        redirectType="Permanent" />
    </rule>

    <!-- 5. Keep your existing product URL rewrite -->
    <rule name="Clean Product URLs" stopProcessing="true">
      <match url="^products/([0-9]+)$" />
      <action type="Rewrite" url="product.aspx?id={R:1}" />
    </rule>

  </rules>
</rewrite>
    <tracing>
      <traceFailedRequests>
        <clear/>
      </traceFailedRequests>
    </tracing>
  </system.webServer>

  <!-- This section tells search engines not to index this page. Section should be repeated for every page -->
  <location path="footer.aspx">
    <system.webServer>
      <httpProtocol>
        <customHeaders>
          <add name="X-Robots-Tag" value="noindex, nofollow" />
        </customHeaders>
      </httpProtocol>
    </system.webServer>
  </location>

  <connectionStrings>
    <add name="DefaultConnection" connectionString="Data Source=208.91.198.174;Initial Catalog=test;User ID=healsavtestdb;Password=testdb2024" providerName="System.Data.SqlClient"/>
  </connectionStrings>
  <!--<system.codedom>
    <compilers>
      <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:default /nowarn:1659;1699;1701" />
      <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:default /nowarn:41008 /define:_MYTYPE=\&quot;Web\&quot; /optionInfer+" />
    </compilers>
  </system.codedom>-->
</configuration>
<!--ProjectGuid: E68B11F7-5C25-4348-87CD-C1452F728566-->
