<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
<rewrite>
  <rules>
 
    <rule name="hide_index.php" stopProcessing="true">
                    <match url="^(.*)$" />
                    <conditions logicalGrouping="MatchAll">
                        <add input="{HTTP_HOST}" matchType="Pattern" pattern="^(.*)$" />
                        <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> 
                    </conditions>
                    <action type="Rewrite" url="index.php" />  
    </rule>
              <rule name="301Redirect" stopProcessing="true">
                    <match url="(.*)" />
                    <conditions logicalGrouping="MatchAny">
                        <add input="{HTTP_HOST}" pattern="^smixs\.com\.cn|smixs.cn|www.smixs.cn$" />
                    </conditions>
                    <action type="Redirect" url="http://www.smixs.com.cn/{R:0}" redirectType="Permanent" />
                </rule> 
				           
               <rule name="301" stopProcessing="true">
                    <match url="^(.*)$" ignoreCase="false" ></match>
                    <conditions logicalGrouping="MatchAll">                       
                         <add input="{HTTP_FROM_HTTPS}" pattern="^on$" negate="true" ></add>  
                  </conditions>
                    <action type="Redirect" url="https://www.smixs.com.cn/{R:1}" redirectType="Permanent" ></action>
               </rule>
 
</rules>
   </rewrite>
 </system.webServer>
</configuration>
