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>



版权信息:本站所有资源仅供学习与参考,请勿用于商业用途,如有侵犯您的版权,请及时联系客服,我们将尽快处理。

上一篇: bootstrap carousel幻灯如何使图片居中

下一篇: KMS 服务器的配置与使用

用户评论 (0)

暂无评论

嘿,我来帮您!