日期:2014-05-17 浏览次数:20615 次
<?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules> <clear /> <rule name="重写规则1 对于 域名泛解析" stopProcessing="true"> <match url=".*" /> <conditions logicalGrouping="MatchAll" trackAllCaptures="false"> <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> <add input="{HTTP_HOST}" pattern="([^.www]+)\.site\.com" /> </conditions> <action type="Rewrite" url="index.php/{C:1}" appendQueryString="true" logRewrittenUrl="true" /> </rule> <rule name="Imported Rule 1"> <match url="(.*)$" ignoreCase="false" /> <conditions logicalGrouping="MatchAny" trackAllCaptures="false"> <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> </conditions> <action type="Rewrite" url="index.php/{R:1}" appendQueryString="true" logRewrittenUrl="true" /> </rule> </rules> <rewriteMaps> <rewriteMap name="域名泛解析" /> </rewriteMaps> </rewrite> <caching> <profiles> <remove extension=".html" /> <add extension=".html" policy="DisableCache" kernelCachePolicy="DontCache" duration="00:00:30" /> </profiles> </caching> </system.webSer