{"id":171,"date":"2012-11-24T01:08:05","date_gmt":"2012-11-23T17:08:05","guid":{"rendered":"https:\/\/sdeno.com\/?p=171"},"modified":"2013-01-04T13:12:17","modified_gmt":"2013-01-04T05:12:17","slug":"wordpress%e4%bf%ae%e6%94%b9%e5%9b%ba%e5%ae%9a%e9%93%be%e6%8e%a5%e5%9c%a8%e8%a5%bf%e9%83%a8%e6%95%b0%e7%a0%81%e7%9a%84%e5%ae%9e%e7%8e%b0","status":"publish","type":"post","link":"https:\/\/sdeno.com\/?p=171","title":{"rendered":"wordpress\u4fee\u6539\u56fa\u5b9a\u94fe\u63a5\u5728\u897f\u90e8\u6570\u7801\u7684\u5b9e\u73b0"},"content":{"rendered":"<p>\u897f\u90e8\u6570\u7801wordpress\u4fee\u6539\u56fa\u5b9a\u94fe\u63a5\u7684\u65b9\u6cd5\u7ec8\u4e8e\u53ef\u4ee5\u5b9e\u73b0\u4e86\uff0cIIS\u4e0a\u4fee\u6539wordpress\u56fa\u5b9a\u94fe\u63a5\u7684\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n<p>\uff081\uff09\u70b9\u51fb\u8fdb\u5165\u201cISAPI\u7b5b\u9009\u8bbe\u7f6e\u201d&#8212;\u70b9\u51fb\u201c\u5f00\u542f\u81ea\u5b9a\u4e49\u7684URL\u9759\u6001\u5316\u652f\u6301\u201d<\/p>\n<a href=\"https:\/\/sdeno.com\/wp-content\/uploads\/2012\/11\/kai.jpg\"><figure class=\"mdx-lazyload-container\" style=\"max-width:144px\"><div style=\"padding-top:103.47222222222%\"><\/div><div class=\"mdx-img-loading-sp mdui-valign\"><div><div class=\"mdui-spinner\"><\/div><\/div><\/div><img width=\"144\" height=\"149\" class=\"aligncenter size-full wp-image-173 lazyload\" title=\"wordpress\u4fee\u6539\u56fa\u5b9a\u94fe\u63a5\u5728\u897f\u90e8\u6570\u7801\u7684\u5b9e\u73b0\" src=\"data:image\/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" data-src=\"https:\/\/sdeno.com\/wp-content\/uploads\/2012\/11\/kai.jpg\" alt=\"https:\/\/sdeno.com\/wp-content\/uploads\/2012\/11\/kai.jpg\"><\/figure><\/a>\n<p>\uff082\uff09\u7f16\u8f91others\/discuz\/\u4e0b\u7684httpd.conf\u6587\u4ef6\u5168\u90e8\u4fee\u6539\u4e3a\u4ee5\u4e0b\u4ee3\u7801\uff1a\u4e4b\u540e\u4fdd\u5b58<\/p>\n<div style=\"background: #efefef; border: 1px dashed #cccccc;\">RegistrationName= wlqcwin<br \/>\nRegistrationCode= 2EAD-35GH-66NN-ZYBA<br \/>\n[ISAPI_Rewrite]<br \/>\n# 3600 = 1 hour<br \/>\nCacheClockRate 3600<br \/>\nRepeatLimit 32<br \/>\n# Protect httpd.ini and httpd.parse.errors files<br \/>\n# from accessing through HTTP<br \/>\n# wordpress \u4f2a\u9759\u6001\u89c4\u5219<br \/>\n# For tag\uff08\u4e2d\u6587\u6807\u7b7e\u4ee5\u53ca\u6807\u7b7e\u7ffb\u9875\u7684\u89c4\u5219\uff09<br \/>\nRewriteRule \/tag\/(.*)\/page\/(\\d+)$ \/index\\.php\\?tag=$1&amp;paged=$2<br \/>\nRewriteRule \/tag\/(.+)$ \/index\\.php\\?tag=$1<br \/>\n# For category\uff08\u4e2d\u6587\u5206\u7c7b\u4ee5\u53ca\u5206\u7c7b\u7ffb\u9875\u7684\u89c4\u5219\uff09<br \/>\nRewriteRule \/category\/(.*)\/page\/(\\d+)$ \/index\\.php\\?category_name=$1&amp;paged=$2<br \/>\nRewriteRule \/category\/(.*) \/index\\.php\\?category_name=$1<br \/>\n# For sitemapxml<br \/>\nRewriteRule \/sitemap.xml \/sitemap.xml [L]<br \/>\nRewriteRule \/sitemap.html \/sitemap.html [L]<br \/>\nRewriteRule \/sitemap_baidu.xml \/sitemap_baidu.xml [L]<br \/>\nRewriteRule \/favicon.ico \/favicon.ico [L]<br \/>\n# For file-based wordpress content (i.e. theme), admin, etc.<br \/>\nRewriteRule \/wp-(.*) \/wp-$1 [L]<br \/>\n# For normal wordpress content, via index.php<br \/>\nRewriteRule ^\/$ \/index.php [L]<br \/>\nRewriteRule \/(.*) \/index.php\/$1 [L]<\/div>\n<p>\uff083\uff09\u65b0\u5efa\u4e00\u4e2a\u8bb0\u4e8b\u672c\uff0c\u5199\u5165\u4e0b\u9762\u4ee3\u7801\u4fdd\u5b58\uff0c\u5e76\u5c06\u5176\u91cd\u65b0\u547d\u540d\u4e3a404.php\u3002\u4e0a\u4f20\u5230\u7f51\u7ad9\u6839\u76ee\u5f55\u5c31\u662f\u5728\uff08wwwroot\uff09\u76ee\u5f55\u4e0b\u3002<\/p>\n<div style=\"background: #efefef; border: 1px dashed #cccccc;\">&lt;?php<br \/>\n$qs = $_SERVER[&#8216;QUERY_STRING&#8217;];<br \/>\n$_SERVER[&#8216;REQUEST_URI&#8217;] = substr($qs, strpos($qs, &#8216;:80&#8217;)+3);<br \/>\n$_SERVER[&#8216;PATH_INFO&#8217;] = $_SERVER[&#8216;REQUEST_URI&#8217;];<br \/>\ninclude(&#8216;index.php&#8217;);<br \/>\n?&gt;<\/div>\n<p>\uff084\uff09\u4fee\u6539\u7f51\u7ad9 \/wp-includes\/class-wp.php\u4e2d\u5982\u4e0b\u4ee3\u7801\u9ed8\u8ba4\u4ece141~148<\/p>\n<div style=\"background: #efefef; border: 1px dashed #cccccc;\">if ( isset($_SERVER[&#8216;PATH_INFO&#8217;]) )<br \/>\n$pathinfo = $_SERVER[&#8216;PATH_INFO&#8217;];<br \/>\nelse<br \/>\n$pathinfo = &#8221;;<br \/>\n$pathinfo_array = explode(&#8216;?&#8217;, $pathinfo);<br \/>\n$pathinfo = str_replace(&#8220;%&#8221;, &#8220;%25&#8221;, $pathinfo_array[0]);<br \/>\n$req_uri = $_SERVER[&#8216;REQUEST_URI&#8217;];<\/div>\n<p>\u4fee\u6539\u4e3a\uff1a<\/p>\n<div style=\"background: #efefef; border: 1px dashed #cccccc;\">\n<p>if ( isset($_SERVER[&#8216;PATH_INFO&#8217;]) )<br \/>\n$pathinfo = mb_convert_encoding($_SERVER[&#8216;PATH_INFO&#8217;], &#8216;utf-8&#8217;, &#8216;GBK&#8217;);<br \/>\nelse<br \/>\n$pathinfo = &#8221;;<br \/>\n$pathinfo_array = explode(&#8216;?&#8217;, $pathinfo);<br \/>\n$pathinfo = str_replace(&#8220;%&#8221;, &#8220;%25&#8221;, $pathinfo_array[0]);<br \/>\n$req_uri = mb_convert_encoding($_SERVER[&#8216;REQUEST_URI&#8217;], &#8216;utf-8&#8217;, &#8216;GBK&#8217;);<\/p>\n<\/div>\n<p>\u4e4b\u540e\u5c31\u53ef\u4ee5\u5728\u540e\u53f0\u8bbe\u7f6e\u81ea\u5df1\u559c\u6b22\u7684\u56fa\u5b9a\u94fe\u63a5\u4e86\u3002<\/p>\n<p>\u8fd9\u91cc\u4ecb\u7ecd\u5728apache\u4e0a\u4fee\u6539wordpress\u56fa\u5b9a\u94fe\u63a5\u5b9e\u73b0\u7684\u65b9\u6cd5\uff1a<\/p>\n<p><a href=\"https:\/\/sdeno.com\/%E5%A6%82%E4%BD%95%E8%87%AA%E5%AE%9A%E4%B9%89wordpress%E5%9B%BA%E5%AE%9A%E9%93%BE%E6%8E%A5\/\">https:\/\/sdeno.com\/\u5982\u4f55\u81ea\u5b9a\u4e49wordpress\u56fa\u5b9a\u94fe\u63a5\/<\/a><br \/>\n\u5728IIS\u4e0a\u5b8c\u7f8e\u5b9e\u73b0\u56fa\u5b9a\u8fde\u63a5\uff1a<br \/>\n<a href=\"https:\/\/sdeno.com\/\u4f7f\u7528wordpress-url-rewrite\u89e3\u51b3\u641c\u7d22\u5206\u9875\u95ee\u9898\u53ca\u4e0d\u5728\u4f7f\u7528404\u9875\u9762\u5b9e\u73b0\/\">https:\/\/sdeno.com\/\u4f7f\u7528wordpress-url-rewrite\u89e3\u51b3\u641c\u7d22\u5206\u9875\u95ee\u9898\u53ca\u4e0d\u5728\u4f7f\u7528404\u9875\u9762\u5b9e\u73b0\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u897f\u90e8\u6570\u7801wordpress\u4fee\u6539\u56fa\u5b9a\u94fe\u63a5\u7684\u65b9\u6cd5\u7ec8\u4e8e\u53ef\u4ee5\u5b9e\u73b0\u4e86\uff0cIIS\u4e0a\u4fee\u6539wordpress\u56fa\u5b9a\u94fe\u63a5\u7684\u6b65\u9aa4\u5982\u4e0b\uff1a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"close","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,11],"tags":[],"class_list":["post-171","post","type-post","status-publish","format-standard","hentry","category-wordpress","category-11"],"_links":{"self":[{"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/posts\/171","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sdeno.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=171"}],"version-history":[{"count":0,"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/posts\/171\/revisions"}],"wp:attachment":[{"href":"https:\/\/sdeno.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=171"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sdeno.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=171"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sdeno.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=171"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}