1. <?xml version="1.0" encoding="UTF-8"?>

  2. <configuration>

  3.     <system.webServer>

  4.         <rewrite>

  5.             <rules>

  6.                 <rule name="WWW Redirect" stopProcessing="true">

  7.                     <match url=".*" />

  8.                     <conditions>

  9.                         <add input="{HTTP_HOST}" pattern="^newzhan.com$" />

  10.                     </conditions>

  11.                     <action type="Redirect" url="http://www.newzhan.com/{R:0}" redirectType="Permanent" />

  12.                 </rule>

  13.                 <rule name="main rules" stopProcessing="true">

  14.                     <match url="(.+)" ignoreCase="false" />

  15.                     <conditions logicalGrouping="MatchAll">

  16.                         <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />

  17.                         <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />

  18.                     </conditions>

  19.                     <action type="Rewrite" url="index.php?rewrite={R:1}" appendQueryString="false" />

  20.                 </rule>

  21.             </rules>

  22.         </rewrite>

  23.     </system.webServer>

  24. </configuration>





评论 (0)
暂无评论