再次查找,找到了Ionic's Isapi Rewrite Filter,完全開源,完全免費(fèi),完全沒有中文使用手冊(cè)。
測(cè)試后,使用正常,用法分享一下:
首先到官方網(wǎng)站或者到腳本之家下載()下載最新軟件包,注意要下載的是IonicIsapiRewriter-2.0-Release-bin.zip,版本號(hào)可能會(huì)變化。以下安裝僅針對(duì)WIN2003+IIS6.0的服務(wù)器環(huán)境。
一、安裝IIRF1、復(fù)制IIRF的DLL(IIRF.dll)到相應(yīng)的文件夾,如D:/Rewrite。 或者,它可以在一個(gè)完全不同的目錄樹。 這取決于你。

2、如果您創(chuàng)建一個(gè)服務(wù)器全局范圍的設(shè)置文件(IirfGlobal.ini),你必須把它與(IIRF.dll)文件在同一目錄中。 該URL Rewrite篩選器將尋找其在該文件中的全局設(shè)置文件。 如果是多個(gè)站點(diǎn),則在站點(diǎn)更目錄下創(chuàng)建(IIRF.dll)文件。
3、對(duì)(IIRF.dll)所在目錄賦予IIS_WPG用戶組“讀取”、“讀取與運(yùn)行”、“寫入”權(quán)限。


4、 打開Internet信息服務(wù)管理器。右鍵點(diǎn)擊IIS管理器左欄“網(wǎng)站” 》“屬性”,彈出“網(wǎng)站屬性”選項(xiàng)卡,選擇“ISAPI篩選器”,如下圖添加IIRF。

百度權(quán)重查詢 站長(zhǎng)交易 友情鏈接交換 網(wǎng)站建設(shè),網(wǎng)站設(shè)計(jì),企業(yè)建站就找313

5、重啟IIS


6、右鍵點(diǎn)擊IIS管理器左欄“網(wǎng)站” 》“屬性”,彈出“網(wǎng)站屬性”選項(xiàng)卡,選擇“ISAPI篩選器”,查看“IIRF”加載是否成功。若是綠色向上箭頭,則表示加載成功。

復(fù)制代碼 代碼如下:
RewriteLogLevel 0
RewriteLog E:/flyingblue/logfiles/IIRFLOG/log
StatusUrl iirfStatus
StatusInquiry ON
RewriteRule /index.html$ /index.php [L]
<ol>
<li>from accessing through HTTP</li>
<li># WordPress rewrite rules#</li>
<li># Below is for permalink like /post/%post_id%.html</li>
<li># Provided By Sideblue</li>
<li># URL:<A rel=nofollow></li></A>;
</ol>
RewriteCond %{REQUEST_FILENAME} ^wp-content.*
RewriteCond %{REQUEST_FILENAME} ^wp-admin.*
RewriteCond %{REQUEST_FILENAME} ^wp-include.*
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule /post/tag/(.*) /index.php/?tag=$1
RewriteRule /tag/(.*) /index.php?tag=$1
RewriteRule /(contact|about-copyright|favor|archives|tags|sitemap) /index.php?pagename=$1
RewriteRule /post/category/(.*)/(feed|rdf|rss|rss2|atom)/?$ /wp-feed.php?category_name=$1&feed=$2
RewriteRule /post/category/?(.*) /index.php?category_name=$1
RewriteRule /author/(.*)/(feed|rdf|rss|rss2|atom)/?$ /wp-feed.php?author_name=$1&feed=$2
RewriteRule /author/?(.*) /index.php?author_name=$1
RewriteRule /rss.xml /wp-feed.php?feed=rss2
RewriteRule /feed/?$ /wp-feed.php?feed=rss2
RewriteRule /comments/feed/?$ /wp-feed.php?feed=comments-rss2
<ol>
<li>RewriteRule /([0-9]+)/?([0-9]+)?/?$ /index.php?p=$1&page=$2</li>
<li>RewriteRule /post/([0-9]+)/?([0-9]+)?/?$ /index.php?p=$1&page=$2</li>
</ol>
RewriteRule /post/([0-9]+).html /index.php?p=$1
RewriteRule /page/(.*)/?s=(.*) /index.php?s=$2&paged=$1
RewriteRule /page/(.*) /index.php?paged=$1
RewriteRule /post/date/([0-9]{4})([0-9]{1,2})([0-9]{1,2})/([^/]+)/?([0-9]+)?/?$ /index.php?year=$1&monthnum=$2&day=$3&name=$4&page=$5
RewriteRule /post/date/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/?$ /index.php?year=$1&monthnum=$2&day=$3&page=$4
RewriteRule /post/date/([0-9]{4})/([0-9]{1,2})/?$ /index.php?year=$1&monthnum=$2&page=$3
RewriteRule /post/([0-9]+).html/(feed|rdf|rss|rss2|atom) /index.php?feed=rss2&p=$1
RewriteRule /post/([0-9]+).html/trackback /wp-trackback.php?p=$1
新聞熱點(diǎn)
疑難解答
圖片精選