{"id":298,"date":"2013-12-23T21:22:17","date_gmt":"2013-12-23T13:22:17","guid":{"rendered":"http:\/\/web.jofar.cn\/?p=298"},"modified":"2013-12-23T21:22:17","modified_gmt":"2013-12-23T13:22:17","slug":"dz3-1%e4%b8%adisapi_rewrite3-1%e4%bc%aa%e9%9d%99%e6%80%81%ef%bc%8c%e4%b8%8eapache%e8%ae%be%e7%bd%ae%e7%9a%84%e8%a7%84%e5%88%99%e7%9b%b8%e5%90%8c","status":"publish","type":"post","link":"https:\/\/web.jofar.cn\/?p=298","title":{"rendered":"dz3.1\u4e2dISAPI_Rewrite3.1\u4f2a\u9759\u6001\uff0c\u4e0eapache\u8bbe\u7f6e\u7684\u89c4\u5219\u76f8\u540c"},"content":{"rendered":"<div id=\"wp\">\n<div id=\"ct\">\n<div id=\"postlist\">\n<div id=\"post_27369043\">\n<p>&nbsp;<\/p>\n<p>ISAPI_Rewrite3.1 full\u53ca\u5176\u4ee5\u4e0a\u7248\u672c\uff0c\u5bf9\u4e8e\u5728IIS\u4e0b\u7684\u8bbe\u7f6e\u4e0eapache\u4e0b\u5b8c\u5168\u76f8\u540c\u4e86<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n1\u3001\u5c06ISAPI_Rewrite3.1\u653e\u5728\u7ad9\u4e0a<\/p>\n<p>2\u3001\u5728IIS\u4e2dISAPI\u7b5b\u9009\u5668\u4e2d\uff0c\u6dfb\u52a0\u4e00\u4e2a\u9879\u6307\u5411\u4e0a\u9762\u7684ISAPI_Rewrite3.1\u4e2d\u7684ISAPI_Rewrite.dll\uff1b<\/p>\n<p>3\u3001\u6253\u5f00ISAPI_Rewrite.dll\u5b89\u88c5\u76ee\u5f55\u4e0b\u7684httpd.conf\u6587\u4ef6\uff0c\u5728\u91cc\u9762\u8f93\u5165\u4ee5\u4e0b\u5185\u5bb9\u5e76\u4fdd\u5b58\uff0c\u8fd9\u6837\u5c31\u6ca1\u6709\u4f7f\u7528\u5929\u6570\u7684\u9650\u5236\u4e86\uff1b<br \/>\nRegistrationName= wlqcwin<br \/>\nRegistrationCode= 2EAD-35GH-66NN-ZYBA<\/p>\n<p>4\u3001\u5b89\u88c5\u597d\u540e\u8bb0\u5f97\u7ed9ISAPI_Rewrite3\u8f6f\u4ef6\u5b89\u88c5\u76ee\u5f55NETWORK SERVICE\u7684\u8bfb\u53d6\u8fd0\u884c\u6743\u9650\u3002\u5982\u4e0b<br \/>\nC:\\Program Files\\Helicon \u7ed9\u8fd9\u4e2a\u6587\u4ef6\u5939 NETWORK SERVICE \u7684\u8bfb\u53d6\u8fd0\u884c\u6743\u9650<br \/>\nC:\\Program Files\\Helicon\\ISAPI_Rewrite3\\ISAPI_Rewrite.dll \u7ed9\u8fd9\u4e2a\u6587\u4ef6 NETWORK SERVICE \u7684\u8bfb\u53d6\u8fd0\u884c\u6743\u9650<\/p>\n<p>\u6dfb\u52a0\u6743\u9650\u65b9\u6cd5\uff0c<br \/>\n\u53f3\u952e &#8211; \u5c5e\u6027 &#8211; \u5b89\u5168 &#8211; \u6dfb\u52a0 &#8211; \u9ad8\u7ea7 &#8211; \u7acb\u5373\u67e5\u627e &#8211; \u7136\u540e\u9009\u62e9 NETWORK SERVICE \u5373\u53ef &#8211; \u786e\u5b9a<\/p>\n<p>5\u3001\u6dfb\u52a0\u4e86ISAPI_Rewrite.dll\u540e\uff0c\u91cd\u542f\u4e0bIIS\uff0c\u8bbf\u95ee\u4e00\u6b21\u7f51\u7ad9\uff0c\u518d\u8fdb\u5165ISPAI\u7b5b\u9009\u5668\u4e2d\u67e5\u770b\u4e0b\uff0c\u72b6\u6001\u662f\u5426\u4e3a\u7eff\u8272\u3002<\/p>\n<p>6\u3001\u7136\u540e\u628a.htaccess \u6587\u4ef6\u4e0a\u4f20\u5230\u7f51\u7ad9\u6839\u76ee\u5f55\uff0c\u91cc\u9762\u7684\u89c4\u5219\uff08\u5185\u5bb9\uff09\uff0c\u7528<br \/>\nApache Web Server(\u865a\u62df\u4e3b\u673a\u7528\u6237) \u89c4\u5219\uff08Rewrite3 \u9700\u8981htaccess \uff0c\u4e0d\u7528httpd.ini\u65b9\u5f0f\uff09<\/p>\n<p># \u5c06 RewriteEngine \u6a21\u5f0f\u6253\u5f00<br \/>\nRewriteEngine On<\/p>\n<p># \u4fee\u6539\u4ee5\u4e0b\u8bed\u53e5\u4e2d\u7684 \/discuz \u4e3a\u60a8\u7684\u8bba\u575b\u76ee\u5f55\u5730\u5740\uff0c\u5982\u679c\u7a0b\u5e8f\u653e\u5728\u6839\u76ee\u5f55\u4e2d\uff0c\u8bf7\u5c06 \/discuz \u4fee\u6539\u4e3a \/<br \/>\nRewriteBase \/<\/p>\n<p># Rewrite \u7cfb\u7edf\u89c4\u5219\u8bf7\u52ff\u4fee\u6539<br \/>\nRewriteCond %{QUERY_STRING} ^(.*)$<br \/>\nRewriteRule ^topic-(.+)\\.html$ portal.php?mod=topic&amp;topic=$1&amp;%1<br \/>\nRewriteCond %{QUERY_STRING} ^(.*)$<br \/>\nRewriteRule ^article-([0-9]+)-([0-9]+)\\.html$ portal.php?mod=view&amp;aid=$1&amp;page=$2&amp;%1<br \/>\nRewriteCond %{QUERY_STRING} ^(.*)$<br \/>\nRewriteRule ^forum-(\\w+)-([0-9]+)\\.html$ forum.php?mod=forumdisplay&amp;fid=$1&amp;page=$2&amp;%1<br \/>\nRewriteCond %{QUERY_STRING} ^(.*)$<br \/>\nRewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\\.html$ forum.php?mod=viewthread&amp;tid=$1&amp;extra=page\\%3D$3&amp;page=$2&amp;%1<br \/>\nRewriteCond %{QUERY_STRING} ^(.*)$<br \/>\nRewriteRule ^archiver\/(fid|tid)-([0-9]+)\\.html$ archiver\/index.php?action=$1&amp;value=$2&amp;%1<br \/>\nRewriteCond %{QUERY_STRING} ^(.*)$<br \/>\nRewriteRule ^([a-z]+[a-z0-9_]*)-([a-z0-9_\\-]+)\\.html$ plugin.php?id=$1:$2&amp;%1<\/p>\n<p>7\u3001\u91cd\u542f\u4e00\u4e0bIIS\u3002<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; ISAPI_Rewrite3.1 full\u53ca\u5176\u4ee5\u4e0a\u7248\u672c\uff0c\u5bf9\u4e8e\u5728IIS\u4e0b\u7684\u8bbe\u7f6e\u4e0eapache\u4e0b\u5b8c\u5168\u2026 <span class=\"read-more\"><a href=\"https:\/\/web.jofar.cn\/?p=298\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,12,6,5],"tags":[],"class_list":["post-298","post","type-post","status-publish","format-standard","hentry","category-cloud","category-server","category-original-harmony","category-practice-readme"],"_links":{"self":[{"href":"https:\/\/web.jofar.cn\/index.php?rest_route=\/wp\/v2\/posts\/298","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/web.jofar.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/web.jofar.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/web.jofar.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/web.jofar.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=298"}],"version-history":[{"count":0,"href":"https:\/\/web.jofar.cn\/index.php?rest_route=\/wp\/v2\/posts\/298\/revisions"}],"wp:attachment":[{"href":"https:\/\/web.jofar.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=298"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/web.jofar.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=298"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/web.jofar.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=298"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}