10秒后自動關(guān)閉
主機(jī)大師中,設(shè)置IIS的Rewrite(偽靜態(tài))示例

只需要在網(wǎng)站根目錄下把以下規(guī)則保存為web.config文件就可以,如已經(jīng)存在有web.config文件,則只需要把<rewrite></rewrite>及中間內(nèi)容復(fù)制放到<system.webServer>下面。

-------------------------------Discuz! Q --------------------------------

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>
            <rules>
                <rule name="root_location_rewrite" stopProcessing="true">
  		<match ignoreCase="false" url="."/>
  		<conditions logicalGrouping="MatchAll">
    		<add ignoreCase="false" input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>
    		<add ignoreCase="false" input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/>
  		</conditions>
  		<action appendQueryString="true" type="Rewrite" url="index.php?{QUERY_STRING}"/>
	</rule>
	<rule name="default_file_rewrite" stopProcessing="true">
  		<match ignoreCase="false" url="^$"/>
  		<action appendQueryString="true" type="Rewrite" url="index.php?{QUERY_STRING}"/>
	</rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>

------------------------------Discuz2------------------------------------

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
    <rules>
    <rule name="portal_topic">
        <match url="^(.*/)*topic-(.+).html\?*(.*)$" />
        <action type="Rewrite" url="{R:1}/portal.php\?mod=topic&amp;topic={R:2}&amp;{R:3}" />
    </rule>
    <rule name="forum_forumdisplay">
        <match url="^(.*/)*forum-(\w+)-([0-9]+).html\?*(.*)$" />
    <action type="Rewrite" url="{R:1}/forum.php\?mod=forumdisplay&amp;fid={R:2}&amp;page={R:3}&amp;{R:4}" />
    </rule>
    <rule name="forum_viewthread">
        <match url="^(.*/)*thread-([0-9]+)-([0-9]+)-([0-9]+).html\?*(.*)$" />
        <action type="Rewrite" url="{R:1}/forum.php\?mod=viewthread&amp;tid={R:2}&amp;extra=page%3D{R:4}&amp;page={R:3}&amp;{R:5}" />
    </rule>
    <rule name="group_group">
        <match url="^(.*/)*group-([0-9]+)-([0-9]+).html\?*(.*)$" />
        <action type="Rewrite" url="{R:1}/forum.php\?mod=group&amp;fid={R:2}&amp;page={R:3}&amp;{R:4}" />
    </rule>
    <rule name="home_space">
        <match url="^(.*/)*space-(username[-]uid)-(.+).html\?*(.*)$" />
        <action type="Rewrite" url="{R:1}/home.php\?mod=space&amp;{R:2}={R:3}&amp;{R:4}" />
    </rule>
    <rule name="forum_archiver">
        <match url="^(.*/)*(fid[-]tid)-([0-9]+).html\?*(.*)$" />
        <action type="Rewrite" url="{R:1}/index.php\?action={R:2}&amp;value={R:3}&amp;{R:4}" />
    </rule>
    </rules>
 </rewrite>
 </system.webServer>
</configuration>

------------------------------DiscuzX3------------------------------------

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
    <rules>
    <rule name="portal_topic">
        <match url="^(.*/)*topic-(.+).html\?*(.*)$" />
        <action type="Rewrite" url="{R:1}/portal.php\?mod=topic&amp;topic={R:2}&amp;{R:3}" />
    </rule>
    <rule name="portal_article">
        <match url="^(.*/)*article-([0-9]+)-([0-9]+).html\?*(.*)$" />
        <action type="Rewrite" url="{R:1}/portal.php\?mod=view&amp;aid={R:2}&amp;page={R:3}&amp;{R:4}" />
    </rule>
    <rule name="forum_forumdisplay">
        <match url="^(.*/)*forum-(\w+)-([0-9]+).html\?*(.*)$" />
        <action type="Rewrite" url="{R:1}/forum.php\?mod=forumdisplay&amp;fid={R:2}&amp;page={R:3}&amp;{R:4}" />
    </rule>
    <rule name="forum_viewthread">
        <match url="^(.*/)*thread-([0-9]+)-([0-9]+)-([0-9]+).html\?*(.*)$" />
        <action type="Rewrite" url="{R:1}/forum.php\?mod=viewthread&amp;tid={R:2}&amp;extra=page%3D{R:4}&amp;page={R:3}&amp;{R:5}" />
    </rule>
    <rule name="group_group">
        <match url="^(.*/)*group-([0-9]+)-([0-9]+).html\?*(.*)$" />
        <action type="Rewrite" url="{R:1}/forum.php\?mod=group&amp;fid={R:2}&amp;page={R:3}&amp;{R:4}" />
    </rule>
    <rule name="home_space">
        <match url="^(.*/)*space-(username[-]uid)-(.+).html\?*(.*)$" />
        <action type="Rewrite" url="{R:1}/home.php\?mod=space&amp;{R:2}={R:3}&amp;{R:4}" />
    </rule>
    <rule name="home_blog">
        <match url="^(.*/)*blog-([0-9]+)-([0-9]+).html\?*(.*)$" />
        <action type="Rewrite" url="{R:1}/home.php\?mod=space&amp;uid={R:2}&amp;do=blog&amp;id={R:3}&amp;{R:4}" />
    </rule>
    <rule name="forum_archiver">
        <match url="^(.*/)*(fid[-]tid)-([0-9]+).html\?*(.*)$" />
        <action type="Rewrite" url="{R:1}/index.php\?action={R:2}&amp;value={R:3}&amp;{R:4}" />
    </rule>
    <rule name="plugin">
        <match url="^(.*/)*([a-z]+[a-z0-9_]*)-([a-z0-9_\-]+).html\?*(.*)$" />
        <action type="Rewrite" url="{R:1}/plugin.php\?id={R:2}:{R:3}&amp;{R:4}" />
    </rule>
    </rules>
</rewrite>
</system.webServer>
</configuration>

------------------------------ecshop------------------------------------

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
  <rewrite>
     <rules>
            <rule name="index">
                <match url="^index.html" />
                <action type="Rewrite" url="index.php" />
            </rule>
            <rule name="category 0">
                <match url="^category$" />
                <action type="Rewrite" url="index.php" />
            </rule>
            <rule name="feed category">
                <match url="^feed-c([0-9]+).xml$" />
                <action type="Rewrite" url="feed.php?cat={R:1}"  />
            </rule>
            <rule name="feed brand">
                <match url="^feed-b([0-9]+).xml$" />
                <action type="Rewrite" url="feed.php?brand={R:1}"  />
            </rule>
            <rule name="feed type">
                <match url="^feed-type([^-]+).xml$" />
                <action type="Rewrite" url="feed.php?type={R:1}"  />
            </rule>
            <rule name="feed">
                <match url="^feed.xml$" />
                <action type="Rewrite" url="feed.php" />
            </rule>
            <rule name="category 1">
                <match url="^category-([0-9]+)-b([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)-([0-9]+)-(.+)-([a-zA-Z]+)(.*).html" />
                <action type="Rewrite" url="category.php?id={R:1}&amp;brand={R:2}&amp;price_min={R:3}&amp;price_max={R:4}&amp;filter_attr={R:5}&amp;page={R:6}&amp;sort={R:7}&amp;order={R:8}"  />
            </rule>
            <rule name="category 2">
                <match url="^category-([0-9]+)-b([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)(.*).html" />
                <action type="Rewrite" url="category.php?id={R:1}&amp;brand={R:2}&amp;price_min={R:3}&amp;price_max={R:4}&amp;filter_attr={R:5}"  />
            </rule>
            <rule name="category 3">
                <match url="^category-([0-9]+)-b([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*).html" />
                <action type="Rewrite" url="category.php?id={R:1}&amp;brand={R:2}&amp;page={R:3}&amp;sort={R:4}&amp;order={R:5}"  />
            </rule>
            <rule name="category 4">
                <match url="^category-([0-9]+)-b([0-9]+)-([0-9]+)(.*).html" />
                <action type="Rewrite" url="category.php?id={R:1}&amp;brand={R:2}&amp;page={R:3}"  />
            </rule>
            <rule name="category 5">
                <match url="^category-([0-9]+)-b([0-9]+)(.*).html" />
                <action type="Rewrite" url="category.php?id={R:1}&amp;brand={R:2}"  />
            </rule>
            <rule name="category 6">
                <match url="^category-([0-9]+)(.*).html" />
                <action type="Rewrite" url="category.php?id={R:1}"  />
            </rule>
            <rule name="category 7">
                <match url="^category-([0-9]+)-b([0-9]+).html(.*)$" ignoreCase="false" />
                <action type="Rewrite" url="category.php?{R:3}&amp;id={R:1}&amp;brand={R:2}"  />
            </rule>
            <rule name="goods">
                <match url="^goods-([0-9]+)(.*).html" />
                <action type="Rewrite" url="goods.php?id={R:1}"  />
            </rule>
            <rule name="article 0">
                <match url="^article_cat-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*).html" />
                <action type="Rewrite" url="article_cat.php?id={R:1}&amp;page={R:2}&amp;sort={R:3}&amp;order={R:4}"  />
            </rule>
            <rule name="article 1">
                <match url="^article_cat-([0-9]+)-([0-9]+)-(.+)(.*).html" />
                <action type="Rewrite" url="article_cat.php?id={R:1}&amp;page={R:1}&amp;keywords={R:2}"  />
            </rule>
            <rule name="article 2">
                <match url="^article_cat-([0-9]+)-([0-9]+)(.*).html" />
                <action type="Rewrite" url="article_cat.php?id={R:1}&amp;page={R:2}"  />
            </rule>
            <rule name="article 3">
                <match url="^article_cat-([0-9]+)(.*).html" />
                <action type="Rewrite" url="article_cat.php?id={R:1}"  />
            </rule>
            <rule name="article 4">
                <match url="^article-([0-9]+)(.*).html" />
                <action type="Rewrite" url="article.php?id={R:1}"  />
            </rule>
            <rule name="brand 0">
                <match url="^brand-([0-9]+)-c([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+).html" />
                <action type="Rewrite" url="brand.php?id={R:1}&amp;cat={R:2}&amp;page={R:3}&amp;sort={R:4}&amp;order={R:5}"  />
            </rule>
            <rule name="brand 1">
                <match url="^brand-([0-9]+)-c([0-9]+)-([0-9]+)(.*).html" />
                <action type="Rewrite" url="brand.php?id={R:1}&amp;cat={R:2}&amp;page={R:3}"  />
            </rule>
            <rule name="brand 2">
                <match url="^brand-([0-9]+)-c([0-9]+).html(.*)$" />
                <action type="Rewrite" url="brand.php?{R:3}&amp;id={R:1}&amp;cat={R:2}"  />
            </rule>
            <rule name="brand 3">
                <match url="^brand-([0-9]+)-c([0-9]+)(.*).html" />
                <action type="Rewrite" url="brand.php?id={R:1}&amp;cat={R:2}"  />
            </rule>
            <rule name="brand 4">
                <match url="^brand-([0-9]+)(.*).html" />
                <action type="Rewrite" url="brand.php?id={R:1}"  />
            </rule>
            <rule name="tag">
                <match url="^tag-(.*).html" />
                <action type="Rewrite" url="search.php?keywords={R:1}"  />
            </rule>
            <rule name="snatch">
                <match url="^snatch-([0-9]+).html" />
                <action type="Rewrite" url="snatch.php?id={R:1}"  />
            </rule>
            <rule name="group">
                <match url="^group_buy-([0-9]+).html" />
                <action type="Rewrite" url="group_buy.php?act=view&amp;id={R:1}"  />
            </rule>
            <rule name="auction">
                <match url="^auction-([0-9]+).html" />
                <action type="Rewrite" url="auction.php?act=view&amp;id={R:1}"  />
            </rule>
            <rule name="exchange 0">
                <match url="^exchange-id([0-9]+)(.*).html" />
                <action type="Rewrite" url="exchange.php?id={R:1}&amp;act=view"  />
            </rule>
            <rule name="exchange 1">
                <match url="^exchange-([0-9]+)-min([0-9]+)-max([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*).html" />
                <action type="Rewrite" url="exchange.php?cat_id={R:1}&amp;integral_min={R:2}&amp;integral_max={R:3}&amp;page={R:4}&amp;sort={R:5}&amp;order={R:6}"  />
            </rule>
            <rule name="exchange 2">
                <match url="^exchange-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*).html" />
                <action type="Rewrite" url="exchange.php?cat_id={R:1}&amp;page={R:2}&amp;sort={R:3}&amp;order={R:4}"  />
            </rule>
            <rule name="exchange 3">
                <match url="^exchange-([0-9]+)-([0-9]+)(.*).html" />
                <action type="Rewrite" url="exchange.php?cat_id={R:1}&amp;page={R:2}"  />
            </rule>
        <rule name="exchange 4">
            <match url="^exchange-([0-9]+)(.*).html" />
            <action type="Rewrite" url="exchange.php?cat_id={R:1}"  />
    </rule>
</rules>
</rewrite>
</system.webServer>
</configuration>

------------------------------z-blog------------------------------------

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
    <rules>
    <rule name="zblog" stopProcessing="true">
       match  url="^.*?"  ignoreCase="false"  />
           <conditions  logicalGrouping="MatchAll">
             <add  input="{REQUEST_FILENAME}"  matchType="IsFile"  negate="true"  />
             <add  input="{REQUEST_FILENAME}"  matchType="IsDirectory"  negate="true"  />
           </conditions>
         <action  type="Rewrite"  url="index.php/{R:0}"  />
       </rule>
       <rule  name="index.php"  stopProcessing="true">
         <match  url="^index.php/.*?"  ignoreCase="false"  />
           <conditions  logicalGrouping="MatchAll">
             <add  input="{REQUEST_FILENAME}"  matchType="IsFile"  />
           </conditions>
         <action  type="Rewrite"  url="index.php/{R:0}"  />
    </rules>
</rewrite>
</system.webServer>
</configuration>

------------------------------wordpress------------------------------------

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
    <rules>             
    <rule name="category">
        <match url="category/?(.*)" />
        <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
        <action type="Rewrite" url="/index.php?category_name={R:1}" appendQueryString="false" logRewrittenUrl="false" />
    </rule>
    <rule name="tags">
        <match url="tag/?(.*)" />
        <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
        <action type="Rewrite" url="index.php?tag={R:1}" />
    </rule>
    <rule name="Main Rule" stopProcessing="true">
        <match url=".*" />
        <conditions logicalGrouping="MatchAll" trackAllCaptures="false">
        <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
        </conditions>
        <action type="Rewrite" url="index.php/{R:0}" />
    </rule>
    <rule name="wordpress" patternSyntax="Wildcard">
    <match url="*" />
        <conditions logicalGrouping="MatchAll" trackAllCaptures="false">
        <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
        </conditions>
        <action type="Rewrite" url="index.php" />
    </rule>
</rules>
</rewrite>
</system.webServer>
</configuration>

------------------------------jieqi------------------------------------

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
    <rules> 
        <rule name="jieqiRule 2">
            <match url="^xuanhuanxiaoshuo$" ignoreCase="false" />
            <action type="Rewrite" url="/modules/article/articlelist.php?class=1" appendQueryString="false" />
        </rule>
        <rule name="jieqiRule 3">
            <match url="^xuanhuanxiaoshuo/$" ignoreCase="false" />
            <action type="Rewrite" url="/modules/article/articlelist.php?class=1" appendQueryString="false" />
        </rule>
        <rule name="jieqiRule 4">
            <match url="^xiuzhenxiaoshuo$" ignoreCase="false" />
            <action type="Rewrite" url="/modules/article/articlelist.php?class=2" appendQueryString="false" />
        </rule>
        <rule name="jieqiRule 5">
            <match url="^xiuzhenxiaoshuo/$" ignoreCase="false" />
            <action type="Rewrite" url="/modules/article/articlelist.php?class=2" appendQueryString="false" />
        </rule>
        <rule name="jieqiRule 6">
            <match url="^dushixiaoshuo$" ignoreCase="false" />
            <action type="Rewrite" url="/modules/article/articlelist.php?class=3" appendQueryString="false" />
        </rule>
        <rule name="jieqiRule 7">
            <match url="^dushixiaoshuo/$" ignoreCase="false" />
            <action type="Rewrite" url="/modules/article/articlelist.php?class=3" appendQueryString="false" />
        </rule>
        <rule name="jieqiRule 8">
            <match url="^chuanyuexiaoshuo$" ignoreCase="false" />
            <action type="Rewrite" url="/modules/article/articlelist.php?class=4" appendQueryString="false" />
        </rule>
        <rule name="jieqiRule 9">
            <match url="^chuanyuexiaoshuo/$" ignoreCase="false" />
            <action type="Rewrite" url="/modules/article/articlelist.php?class=4" appendQueryString="false" />
        </rule>
        <rule name="jieqiRule 10">
            <match url="^wangyouxiaoshuo$" ignoreCase="false" />
            <action type="Rewrite" url="/modules/article/articlelist.php?class=5" appendQueryString="false" />
        </rule>
        <rule name="jieqiRule 11">
            <match url="^wangyouxiaoshuo/$" ignoreCase="false" />
            <action type="Rewrite" url="/modules/article/articlelist.php?class=5" appendQueryString="false" />
        </rule>
        <rule name="jieqiRule 12">
            <match url="^kehuanxiaoshuo$" ignoreCase="false" />
            <action type="Rewrite" url="/modules/article/articlelist.php?class=6" appendQueryString="false" />
        </rule>
        <rule name="jieqiRule 13">
            <match url="^kehuanxiaoshuo/$" ignoreCase="false" />
            <action type="Rewrite" url="/modules/article/articlelist.php?class=6" appendQueryString="false" />
        </rule>
        <rule name="jieqiRule 14">
            <match url="^paihangbang$" ignoreCase="false" />
            <action type="Rewrite" url="/modules/article/paihang.php?type1=yes" appendQueryString="false" />
        </rule>
        <rule name="jieqiRule 15">
            <match url="^paihangbang/$" ignoreCase="false" />
            <action type="Rewrite" url="/modules/article/paihang.php?type1=yes" appendQueryString="false" />
        </rule>
        <rule name="jieqiRule 16">
            <match url="^paihangbang/allvote.html$" ignoreCase="false" />
            <action type="Rewrite" url="/modules/article/paihang.php?type1=yes" appendQueryString="false" />
        </rule>
        <rule name="jieqiRule 17">
            <match url="^paihangbang/goodnum.html$" ignoreCase="false" />
            <action type="Rewrite" url="/modules/article/paihang.php?type2=yes" appendQueryString="false" />
        </rule>
        <rule name="jieqiRule 18">
            <match url="^paihangbang/newbook.html$" ignoreCase="false" />
            <action type="Rewrite" url="/modules/article/paihang.php?type3=yes" appendQueryString="false" />
        </rule>
        <rule name="jieqiRule 19">
            <match url="^xiaoshuodaquan$" ignoreCase="false" />
            <action type="Rewrite" url="/modules/article/xiaoshuodaquan.php" />
        </rule>
        <rule name="jieqiRule 20">
            <match url="^xiaoshuodaquan/$" ignoreCase="false" />
            <action type="Rewrite" url="/modules/article/xiaoshuodaquan.php" />
        </rule>
        <rule name="jieqiRule 21">
            <match url="^shu([0-9]+)$" ignoreCase="false" />
            <action type="Rewrite" url="/modules/article/reader.php?aid={R:1}" appendQueryString="false" />
        </rule>
        <rule name="jieqiRule 22">
            <match url="^shu([0-9]+)/$" ignoreCase="false" />
            <action type="Rewrite" url="/modules/article/reader.php?aid={R:1}" appendQueryString="false" />
        </rule>
        <rule name="jieqiRule 23">
            <match url="^shu([0-9]+)/([0-9]+).html$" ignoreCase="false" />
            <action type="Rewrite" url="/modules/article/reader.php?aid={R:1}&amp;cid={R:2}" appendQueryString="false" />
        </rule>
        <rule name="jieqiRule 24">
            <match url="^list/([0-9]+)_([0-9]+)/$" ignoreCase="false" />
            <action type="Rewrite" url="/modules/article/articlelist.php?class={R:1}&amp;page={R:2}" appendQueryString="false" />
        </rule>
        <rule name="jieqiRule 25">
            <match url="^list/([0-9]+)_([0-9]+)$" ignoreCase="false" />
            <action type="Rewrite" url="/modules/article/articlelist.php?class={R:1}&amp;page={R:2}" appendQueryString="false" />
        </rule>
        <rule name="jieqiRule 26">
            <match url="^top/([a-z]+)_([0-9]+)/$" ignoreCase="false" />
            <action type="Rewrite" url="/modules/article/toplist.php?sort={R:1}&amp;page={R:2}" appendQueryString="false" />
        </rule>
        <rule name="jieqiRule 27">
            <match url="^top/([a-z]+)_([0-9]+)$" ignoreCase="false" />
            <action type="Rewrite" url="/modules/article/toplist.php?sort={R:1}&amp;page={R:2}" appendQueryString="false" />
        </rule>
        <rule name="jieqiRule 28">
            <match url="^shu([0-9]+)$" ignoreCase="false" />
            <action type="Rewrite" url="modules/article/articleinfo.php?id={R:1}" appendQueryString="false" />
        </rule>
        <rule name="jieqiRule 29">
            <match url="^shu([0-9]+)/$" ignoreCase="false" />
            <action type="Rewrite" url="modules/article/articleinfo.php?id={R:1}" appendQueryString="false" />
        </rule>
        <rule name="jieqiRule 30">
            <match url="^quanben/$" ignoreCase="false" />
            <action type="Rewrite" url="/modules/article/articlelist.php?fullflag=1" appendQueryString="false" />
        </rule>
        <rule name="jieqiRule 31">
            <match url="^quanben$" ignoreCase="false" />
            <action type="Rewrite" url="/modules/article/articlelist.php?fullflag=1" appendQueryString="false" />
        </rule>
        <rule name="jieqiRule 32">
            <match url="^52mb/(.*).html$" ignoreCase="false" />
            <action type="Rewrite" url="/404.html" />
        </rule>
        <rule name="jieqiRule 33">
            <match url="^templates/(.*).html$" ignoreCase="false" />
            <action type="Rewrite" url="/404.html" />
        </rule>
        <rule name="jieqiRule 34">
            <match url="^themes/52mb/(.*).html$" ignoreCase="false" />
            <action type="Rewrite" url="/404.html" />
        </rule>
        <rule name="jieqiRule 35">
            <match url="^modules/article/templates/$" ignoreCase="false" />
            <action type="Rewrite" url="/404.html" />
        </rule>
        <rule name="jieqiRule 36">
            <match url="^modules/article/templates/(.*).html$" ignoreCase="false" />
            <action type="Rewrite" url="/404.html" />
        </rule>
        <rule name="jieqiRule 37">
            <match url="^sort.html$" ignoreCase="false" />
            <action type="Rewrite" url="/wap/sort.php" />
        </rule>
        <rule name="jieqiRule 38">
            <match url="^top.html$" ignoreCase="false" />
            <action type="Rewrite" url="/wap/top.php" />
        </rule>
        <rule name="jieqiRule 39">
            <match url="^bookcase.php$" ignoreCase="false" />
            <action type="Rewrite" url="/wap/bookcase.php" />
        </rule>
        <rule name="jieqiRule 40">
            <match url="^sort-([0-9]+)-([0-9]+)/$" ignoreCase="false" />
            <action type="Rewrite" url="/wap/sort.php?sortid={R:1}&amp;page={R:2}" appendQueryString="false" />
        </rule>
        <rule name="jieqiRule 41">
            <match url="^top-([a-z]+)-([0-9]+)/$" ignoreCase="false" />
            <action type="Rewrite" url="/wap/top.php?type={R:1}&amp;page={R:2}" appendQueryString="false" />
        </rule>
        <rule name="jieqiRule 42">
            <match url="^full-([0-9]+)/$" ignoreCase="false" />
            <action type="Rewrite" url="/modules/article/full.php?page={R:1}" appendQueryString="false" />
        </rule>
        <rule name="jieqiRule 43">
            <match url="^wapbook/([0-9]+)/$" ignoreCase="false" />
            <action type="Rewrite" url="/modules/article/wapinfo.php?id={R:1}" appendQueryString="false" />
        </rule>
        <rule name="jieqiRule 44">
            <match url="^wapbook([0-9]+)/$" ignoreCase="false" />
            <action type="Rewrite" url="/modules/article/wapallchapter.php?aid={R:1}&amp;page=1" appendQueryString="false" />
        </rule>
        <rule name="jieqiRule 45">
            <match url="^wapbook([0-9]+)_([0-9]+)/$" ignoreCase="false" />
            <action type="Rewrite" url="/modules/article/wapallchapter.php?aid={R:1}&amp;page={R:2}" appendQueryString="false" />
        </rule>
        <rule name="jieqiRule 46">
            <match url="^wapbook([0-9]+)_([0-9]+)_1/$" ignoreCase="false" />
            <action type="Rewrite" url="/modules/article/wapallchapter.php?aid={R:1}&amp;page={R:2}&amp;desc=1" appendQueryString="false" />
        </rule>
        <rule name="jieqiRule 47">
            <match url="^wapbook([0-9]+)/([0-9]+)/$" ignoreCase="false" />
            <action type="Rewrite" url="/modules/article/wapreader.php?aid={R:1}&amp;cid={R:2}" appendQueryString="false" />
        </rule>
        <rule name="jieqiRule 48">
            <match url="^author/(.*)$" ignoreCase="false" />
            <action type="Rewrite" url="/modules/article/author.php?author={R:1}" appendQueryString="false" />
        </rule>
        <rule name="jieqiRule 49">
            <match url="^52mb/(.*).html$" ignoreCase="false" />
            <action type="Rewrite" url="/404.html" />
        </rule>
        <rule name="jieqiRule 50">
            <match url="^templates/(.*).html$" ignoreCase="false" />
            <action type="Rewrite" url="/404.html" />
        </rule>
        <rule name="jieqiRule 51">
            <match url="^themes/52mb/(.*).html$" ignoreCase="false" />
            <action type="Rewrite" url="/404.html" />
        </rule>
        <rule name="jieqiRule 52">
        <match url="^modules/article/templates/$" ignoreCase="false" />
        <action type="Rewrite" url="/404.html" />
    </rule>
    <rule name="jieqiRule 53">
        <match url="^modules/article/templates/(.*).html$" ignoreCase="false" />
        <action type="Rewrite" url="/404.html" />
    </rule>
    <rule name="jieqiRule 54">
        <match url="^wap/qijixs/(.*).html$" ignoreCase="false" />
        <action type="Rewrite" url="/404.html" />
    </rule>
</rules>
</rewrite>
</system.webServer>
</configuration>

------------------------------thinkphp------------------------------------

與typecho博客程序通用

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
    <rules> 
        <rule name="thinkphp" stopProcessing="true">
            <match url="^(.*)$" />
            <conditions logicalGrouping="MatchAll">
            <add input="{HTTP_HOST}" pattern="^(.*)$" />
            <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
            </conditions>
            <action type="Rewrite" url="index.php/{R:1}" />
        </rule>
</rules>
</rewrite>
</system.webServer>
</configuration>

------------------------------emlog------------------------------------

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
    <rules> 
        <rule name="emlogRule 1">
            <match url="^(post[-]record[-]sort[-]author[-]page)-([0-9]+).html$" ignoreCase="false" />
            <conditions logicalGrouping="MatchAll">
            <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
            </conditions>
            <action type="Rewrite" url="index.php?{R:1}={R:2}" appendQueryString="false" />
        </rule>
        <rule name="emlogRule 2">
            <match url="^tag-(.+).html$" ignoreCase="false" />
            <action type="Rewrite" url="index.php?tag={R:1}" appendQueryString="false" />
        </rule>
        <rule name="emlogRule 3">
            <match url="^t/page-([0-9]+).html$" ignoreCase="false" />
            <action type="Rewrite" url="t/index.php?page={R:1}" appendQueryString="false" />
        </rule>
</rules>
</rewrite>
</system.webServer>
</configuration>

------------------------------phpcms------------------------------------

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
    <rules>
        <rule name="phpcmsRule 1">
            <match url="^(.*)content-([0-9]+)-([0-9]+)-([0-9]+)\.html$" ignoreCase="false" />
            <action type="Rewrite" url="{R:1}/index\.php\?m=content&amp;c=index&amp;a=show&amp;catid={R:2}&amp;id={R:3}&amp;page={R:4}" appendQueryString="false" />
        </rule>
        <rule name="phpcmsRule 2">
            <match url="^(.*)show-([0-9]+)-([0-9]+)-([0-9]+).html$" ignoreCase="false" />
            <action type="Rewrite" url="{R:1}/index\.php\?m=content&amp;c=index&amp;a=show&amp;catid={R:2}&amp;id={R:3}&amp;page={R:4}" appendQueryString="false" />
        </rule>
        <rule name="phpcmsRule 3">
            <match url="^(.*)list-([0-9]+)-([0-9]+).html$" ignoreCase="false" />
            <action type="Rewrite" url="{R:1}/index\.php\?m=content&amp;c=index&amp;a=lists&amp;catid={R:2}&amp;page={R:3}" appendQueryString="false" />
        </rule>
</rules>
</rewrite>
</system.webServer>
</configuration>


用戶留言