{"id":289,"date":"2008-12-24T23:10:25","date_gmt":"2008-12-24T15:10:25","guid":{"rendered":""},"modified":"2014-02-27T23:01:47","modified_gmt":"2014-02-27T15:01:47","slug":"%e5%9c%a8iis-isapi-rewrite%e4%b8%8b%e7%9a%84url%e8%a7%84%e5%88%99","status":"publish","type":"post","link":"http:\/\/www.xiaoyebailong.com\/index.php\/2008\/12\/24\/289.htm","title":{"rendered":"\u5728IIS ISAPI ReWrite\u4e0b\u7684URL\u89c4\u5219"},"content":{"rendered":"<p>\u4e3a\u4e86\u4fbf\u4e8e\u641c\u7d22\u5f15\u64ce\u6293\u53d6\uff0c\u4ffa\u4eec\u53ef\u4ee5\u5c06wordpress\u8fdb\u884c\u9759\u6001URL\u91cd\u5199\u3001\u4e0b\u9762\u662fURL ReWrite\u7684\u89c4\u5219\uff01<\/p>\n<p>\u4e0b\u9762\u662fRewrite\u89c4\u5219\uff1a(\u8bf7\u5c06\u4e0b\u9762\u4ee3\u7801\u5185\u5bb9\u5b58\u5230httpd.ini\uff0c\u7136\u540e\u9009\u62e9\u4e00\u79cd&rdquo;\u7ea2\u8272\u90e8\u4efd&rdquo;\u7684\u5185\u5bb9\u586b\u5199\u5230wordpress\u540e\u53f0\u81ea\u5b9a\u94fe\u63a5\u7684&rdquo;\u6c38\u8fdc\u94fe\u63a5&rdquo;)<\/p>\n<p><font color=\"#0000ff\">\u70b9\u8fd9\u91cc\u4e0b\u8f7d\u9002\u7528\u4e8ewordpress2.5\u7248\u672c\u7684httpd.ini\u6587\u4ef6<\/font><\/p>\n<p>&nbsp;<\/p>\n<p>[ISAPI_Rewrite]<\/p>\n<p># 3600 = 1 hour<br \/>\nCacheClockRate 3600<\/p>\n<p>RepeatLimit 32<\/p>\n<p># Protect httpd.ini and httpd.parse.errors files<br \/>\n# from accessing through HTTP<br \/>\n# # <font color=\"#ff0000\">\/%year%%monthnum%%day%\/%postname%\/<\/font><\/p>\n<p>RewriteRule \/tag\/(.*) \/index\\.php\\?tag=$1<\/p>\n<p>RewriteRule \/(about|copyright|leebolin)\/ \/index\\.php\\?pagename=$1<\/p>\n<p>RewriteRule \/category\/(.*)\/(feed|rdf|rss|rss2|atom)\/?$ \/wp-feed\\.php\\?category_name=$1&amp;feed=$2<\/p>\n<p>RewriteRule \/category\/?(.*)\/ \/index\\.php\\?category_name=$1<\/p>\n<p>RewriteRule \/author\/(.*)\/(feed|rdf|rss|rss2|atom)\/?$ \/wp-feed\\.php\\?author_name=$1&amp;feed=$2<\/p>\n<p>RewriteRule \/author\/?(.*) \/index\\.php\\?author_name=$1<\/p>\n<p>RewriteRule \/feed\/?$ \/wp-feed\\.php\/\\?feed=rss2<\/p>\n<p>RewriteRule \/comments\/feed\/?$ \/wp-feed\\.php\/\\?feed=comments-rss2<\/p>\n<p>RewriteRule \/page\/(.*)\/ \/index\\.php\\?paged=$1<\/p>\n<p>RewriteRule \/([0-9]{4})([0-9]{1,2})([0-9]{1,2})\/([^\/]+)\/?([0-9]+)?\/?$ \/index\\.php\\?year=$1&amp;monthnum=$2&amp;day=$3&amp;name=$4&amp;page=$5<\/p>\n<p>RewriteRule \/([0-9]{4})\/([0-9]{1,2})\/([0-9]{1,2})\/?$ \/index\\.php\\?year=$1&amp;monthnum=$2&amp;day=$3&amp;page=$4<\/p>\n<p>RewriteRule \/([0-9]{4})\/([0-9]{1,2})\/?$ \/index\\.php\\?year=$1&amp;monthnum=$2&amp;page=$3<\/p>\n<p>RewriteRule \/([0-9]{4})([0-9]{1,2})([0-9]{1,2})\/([^\/]+)\/(feed|rdf|rss|rss2|atom)\/?$ \/index\\.php\\?year=$1&amp;monthnum=$2&amp;day=$3&amp;name=$4&amp;feed=$5<\/p>\n<p>RewriteRule \/([0-9]{4})([0-9]{1,2})([0-9]{1,2})\/([^\/]+)\/trackback\/?$ \/wp-trackback\\.php\\?year=$1&amp;monthnum=$2&amp;day=$3&amp;name=$4&amp;tb=1<\/p>\n<p># # WordPress rewrite rules#<br \/>\n# <font color=\"#ff0000\">\/Html\/%post_id%.html<\/font><\/p>\n<p>RewriteRule \/tag\/(.*) \/index\\.php\\?tag=$1<\/p>\n<p>RewriteRule \/(about|copyright|leebolin|favor|archives)\/ \/index\\.php\\?<\/p>\n<p>pagename=$1<\/p>\n<p>RewriteRule \/Html\/category\/(.*)\/(feed|rdf|rss|rss2|atom)\/?$ \/wp-feed\\.php\\?<\/p>\n<p>category_name=$1&amp;feed=$2<\/p>\n<p>RewriteRule \/Html\/category\/?(.*)\/ \/index\\.php\\?category_name=$1<\/p>\n<p>RewriteRule \/author\/(.*)\/(feed|rdf|rss|rss2|atom)\/?$ \/wp-feed\\.php\\?<\/p>\n<p>author_name=$1&amp;feed=$2<\/p>\n<p>RewriteRule \/author\/?(.*) \/index\\.php\\?author_name=$1<\/p>\n<p>RewriteRule \/rss.xml \/wp-feed\\.php\/\\?feed=rss2<\/p>\n<p>RewriteRule \/feed\/?$ \/wp-feed\\.php\/\\?feed=rss2<\/p>\n<p>RewriteRule \/comments\/feed\/?$ \/wp-feed\\.php\/\\?feed=comments-rss2<\/p>\n<p>RewriteRule \/([0-9]+)\/?([0-9]+)?\/?$ \/index\\.php\\?p=$1&amp;page=$2<\/p>\n<p># RewriteRule \/Html\/([0-9]+)\/?([0-9]+)?\/?$ \/index\\.php\\?p=$1&amp;page=$2<\/p>\n<p>RewriteRule \/Html\/([0-9]+).html \/index\\.php\\?p=$1<\/p>\n<p>RewriteRule \/page\/(.*)\/ \/index\\.php\\?paged=$1<\/p>\n<p>RewriteRule \/Html\/date\/([0-9]{4})([0-9]{1,2})([0-9]{1,2})\/([^\/]+)\/?([0-9]+)?\/?$<\/p>\n<p>\/index\\.php\\?year=$1&amp;monthnum=$2&amp;day=$3&amp;name=$4&amp;page=$5<\/p>\n<p>RewriteRule \/Html\/date\/([0-9]{4})\/([0-9]{1,2})\/([0-9]{1,2})\/?$ \/index\\.php\\?<\/p>\n<p>year=$1&amp;monthnum=$2&amp;day=$3&amp;page=$4<\/p>\n<p>RewriteRule \/Html\/date\/([0-9]{4})\/([0-9]{1,2})\/?$ \/index\\.php\\?<\/p>\n<p>year=$1&amp;monthnum=$2&amp;page=$3<\/p>\n<p>RewriteRule \/Html\/([0-9]+).html\/(feed|rdf|rss|rss2|atom)\/ \/index\\.php\\?<\/p>\n<p>feed=rss2&amp;p=$1<\/p>\n<p>RewriteRule \/Html\/([0-9]+).html\/trackback\/ \/wp-trackback\\.php\\?p=$1<\/p>\n<p>RewriteRule \/photo\/?([^\/]*)?\/?([^\/]*)?\/?([^\/]*)?\/?([^\/]*)?\/?$ \/wp-<\/p>\n<p>content\/plugins\/fgallery\/fim_photos\\.php\\?$1=$2&amp;$3=$4 [QSA,L,I]<\/p>\n<p>RewriteRule \/photo\/?(.*) \/wp-content\/plugins\/fgallery\/fim_photos\\.php\\?<\/p>\n<p>$1=$2&amp;$3=$4 [QSA,L,I]<\/p>\n<p>RewriteRule ^(.*)\/archiver\/([a-z0-9\\-]+\\.html)$ $1\/archiver\/index\\.php\\?$2<br \/>\nRewriteRule ^(.*)\/forum-([0-9]+)-([0-9]+)\\.html$ $1\/forumdisplay\\.php\\?<\/p>\n<p>fid=$2&amp;page=$3<br \/>\nRewriteRule ^(.*)\/thread-([0-9]+)-([0-9]+)-([0-9]+)\\.html$ $1\/viewthread\\.php\\?<\/p>\n<p>tid=$2&amp;extra=page\\%3D$4&amp;page=$3<br \/>\nRewriteRule ^(.*)\/profile-(username|uid)-(.+)\\.html$ $1\/viewpro\\.php\\?$2=$3<br \/>\nRewriteCond Host: (.+)<br \/>\nRewriteCond Referer: (?!http:\/\/\\1.*).*<br \/>\nRewriteRule .*\\.(?:gif|jpg|png) \/block.gif<\/p>\n<p>RewriteRule ^(.*)\/archiver\/([a-z0-9\\-]+\\.html)$ $1\/archiver\/index\\.php\\?$2<br \/>\nRewriteRule ^(.*)\/forum-([0-9]+)-([0-9]+)\\.html$ $1\/forumdisplay\\.php\\?fid=$2&amp;page=$3<br \/>\nRewriteRule ^(.*)\/thread-([0-9]+)-([0-9]+)-([0-9]+)\\.html$ $1\/viewthread\\.php\\?tid=$2&amp;extra=page\\%3D$4&amp;page=$3<br \/>\nRewriteRule ^(.*)\/profile-(username|uid)-(.+)\\.html$ $1\/viewpro\\.php\\?$2=$3<br \/>\nRewriteCond Host: (.+)<br \/>\nRewriteCond Referer: (?!http:\/\/\\1.*).*<br \/>\nRewriteRule .*\\.(?:gif|jpg|png) \/block.gif<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e3a\u4e86\u4fbf\u4e8e\u641c\u7d22\u5f15\u64ce\u6293\u53d6\uff0c\u4ffa\u4eec\u53ef\u4ee5\u5c06wordpress\u8fdb\u884c\u9759\u6001URL\u91cd\u5199\u3001\u4e0b\u9762\u662fURL ReWrite\u7684\u89c4\u5219\uff01 \u4e0b\u9762\u662fRewrite\u89c4\u5219\uff1a(\u8bf7\u5c06\u4e0b\u9762\u4ee3\u7801\u5185\u5bb9\u5b58\u5230httpd.ini\uff0c\u7136\u540e\u9009\u62e9\u4e00\u79cd&rdquo;\u7ea2\u8272\u90e8\u4efd&rdquo;\u7684\u5185\u5bb9\u586b\u5199\u5230wo&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"topic":[],"class_list":["post-289","post","type-post","status-publish","format-standard","hentry","category-technology"],"_links":{"self":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts\/289","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/comments?post=289"}],"version-history":[{"count":1,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts\/289\/revisions"}],"predecessor-version":[{"id":66136,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts\/289\/revisions\/66136"}],"wp:attachment":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/media?parent=289"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/categories?post=289"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/tags?post=289"},{"taxonomy":"topic","embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/topic?post=289"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}