{"id":2354,"date":"2013-10-15T21:59:36","date_gmt":"2013-10-15T13:59:36","guid":{"rendered":"https:\/\/sdeno.com\/?p=2354"},"modified":"2013-10-15T21:59:36","modified_gmt":"2013-10-15T13:59:36","slug":"wordpress%e5%9c%a8iis8-0%e4%bc%aa%e9%9d%99%e6%80%81%e8%ae%be%e7%bd%ae%ef%bc%88httpd-ini%e8%bd%ac%e6%88%90web-config%e4%bc%aa%e9%9d%99%e6%80%81%ef%bc%89","status":"publish","type":"post","link":"https:\/\/sdeno.com\/?p=2354","title":{"rendered":"wordpress\u5728IIS8.0\u4f2a\u9759\u6001\u8bbe\u7f6e\uff08httpd.ini\u8f6c\u6210web.config\u4f2a\u9759\u6001\uff09"},"content":{"rendered":"<p>\u5f88\u591a\u7ad9\u957f\u90fd\u5728IIS6.0\u53d1\u5e03\u7f51\u7ad9\u8981\u8ba9\u7f51\u7ad9\u652f\u6301\u4f2a\u9759\u6001\u53ea\u9700\u8981\u4fee\u6539httpd.ini\u5c31\u53ef\u4ee5\u7b80\u5355\u5b9e\u73b0\uff1a<\/p>\n<p>[code]RegistrationName= wlqcwin<br \/>\nRegistrationCode= 2EAD-35GH-66NN-ZYBA<\/p>\n<p>[ISAPI_Rewrite]<br \/>\n# 3600 = 1 hour<br \/>\nCacheClockRate 3600<br \/>\nRepeatLimit 32<\/p>\n<p>#\u9ed8\u8ba4\u5305\u542b\u4e86301\u8bbe\u7f6e\uff0c\u6b64\u8bbe\u7f6e\u60c5\u51b5\u4e0bcctv.com\/aa.htm \u4f1a301\u8df3\u81f3www.cctv.com\/aa.htm\uff0c\u5c06cctv.com\u66ff\u6362\u4e3a\u60a8\u81ea\u5df1\u7684\u57df\u540d\u5c31\u80fd\u5b9e\u73b0\u81ea\u5df1\u7684\u57df\u540d\u7684301<br \/>\nRewriteCond %{HTTP:Host} ^xgllseo.com$<br \/>\nRewriteRule (.*) https:\/\/sdeno.com$1 [NC,R=301]<\/p>\n<p>&nbsp;<\/p>\n<p>#Discuz ! x\u548cdiscuz x1.5\u4f2a\u9759\u6001\u89c4\u5219,\u82e5\u4e0d\u9700\u8981\u6216\u4e0e\u60a8\u7684\u7f51\u7ad9\u7a0b\u5e8f\u6709\u51b2\u7a81\u53ef\u4ee5\u5220\u9664\u3002<br \/>\n#\u5982\u679c\u4f60\u7684\u7f51\u7ad9\u662fdiscuz!x\u5c31\u628a\u4ee5\u4e0b\u51e0\u884c\u524d\u9762\u7684#\u53f7\u5220\u9664\uff0c\u7136\u540e\u628aduoduo \u6dd8\u5b9d\u5ba2 \u4ee5\u4e0b\u7684\u89c4\u5219\u5168\u90e8\u5220\u9664\uff0c\u4e8c\u8005\u6709\u51b2\u9014\uff01<br \/>\n#RewriteRule ^(.*)\/topic-(.+)\\.html\\?*(.*)$ $1\/portal\\.php\\?mod=topic&amp;topic=$2&amp;$3<br \/>\n#RewriteRule ^(.*)\/article-([0-9]+)\\.html\\?*(.*)$ $1\/portal\\.php\\?mod=article&amp;articleid=$2&amp;$3<br \/>\n#RewriteRule ^(.*)\/forum-(\\w+)-([0-9]+)\\.html\\?*(.*)$ $1\/forum\\.php\\?mod=forumdisplay&amp;fid=$2&amp;page=$3&amp;$4<br \/>\n#RewriteRule ^(.*)\/thread-([0-9]+)-([0-9]+)-([0-9]+)\\.html\\?*(.*)$ $1\/forum\\.php\\?mod=viewthread&amp;tid=$2&amp;extra=page\\%3D$4&amp;page=$3&amp;$5<br \/>\n#RewriteRule ^(.*)\/group-([0-9]+)-([0-9]+)\\.html\\?*(.*)$ $1\/forum\\.php\\?mod=group&amp;fid=$2&amp;page=$3&amp;$4<br \/>\n#RewriteRule ^(.*)\/space-(username|uid)-(.+)\\.html\\?*(.*)$ $1\/home\\.php\\?mod=space&amp;$2=$3&amp;$4<br \/>\n#RewriteRule ^(.*)\/([a-z]+)-(.+)\\.html\\?*(.*)$ $1\/$2\\.php\\?rewrite=$3&amp;$4<\/p>\n<p># duoduo \u6dd8\u5b9d\u5ba2 Rewrite\u89c4\u5219<br \/>\nRewriteRule ^\/index\\.html$ \/index\\.php<br \/>\nRewriteRule \/sitemap_baidu.xml \/sitemap_baidu.xml [L]<br \/>\nRewriteRule \/sitemap.html \/sitemap.html [L]<br \/>\nRewriteRule ^\/malllist\\.html$ \/malllist\\.php<br \/>\nRewriteRule ^\/shoplist\\.html$ \/shoplist\\.php<br \/>\nRewriteRule ^\/article\\.html$ \/article\\.php<br \/>\nRewriteRule ^\/user\/center\\.html$ \/user\/center\\.php<br \/>\nRewriteRule ^\/mall-(.*)-(.*)-(.*)\\.html$ \/mall\\.php\\?id=$1&amp;act=$2&amp;page=$3<br \/>\nRewriteRule ^\/mall-(.*)-(.*)\\.html$ \/mall\\.php\\?id=$1&amp;act=$2<br \/>\nRewriteRule ^\/mall-(.*)\\.html$ \/mall\\.php\\?id=$1<br \/>\nRewriteRule ^\/view-(.*)-(.*)\\.html$ \/view\\.php\\?iid=$1&amp;page=$2<br \/>\nRewriteRule ^\/view-(.*)\\.html$ \/view\\.php\\?iid=$1<br \/>\nRewriteRule ^\/malllist-(.*)-(.*)-(.*)\\.html$ \/malllist\\.php\\?catid=$1&amp;mall=$2&amp;page=$3<br \/>\nRewriteRule ^\/article_list-(.*)-(.*)\\.html$ \/article_list\\.php\\?cid=$1&amp;page=$2<br \/>\nRewriteRule ^\/article_list-(.*)\\.html$ \/article_list\\.php\\?cid=$1<br \/>\nRewriteRule ^\/read-(.*)\\.html$ \/read\\.php\\?id=$1<br \/>\nRewriteRule ^\/list-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)\\.html$ \/list\\.php\\?cid=$1&amp;start_price=$2&amp;end_price=$3&amp;sort=$4&amp;area=$5&amp;guarantee=$6&amp;list=$7&amp;q=$8&amp;page=$9<br \/>\nRewriteRule ^\/shop-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)\\.html$ \/shop\\.php\\?nick=$1&amp;start_price=$2&amp;end_price=$3&amp;sort=$4&amp;area=$5&amp;guarantee=$6&amp;list=$7&amp;q=$8&amp;page=$9 [NU]<br \/>\nRewriteRule ^\/shoplist-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)\\.html$ \/shoplist\\.php\\?cid=$1&amp;keyword=$2&amp;start_level=$3&amp;end_level=$4&amp;area=$5&amp;px=$6&amp;cpr=$7&amp;type=$8&amp;page=$9 [NU]<br \/>\nRewriteRule ^\/shoplist-(.*)\\.html$ \/shoplist\\.php\\?cid=$1<br \/>\nRewriteRule ^\/shop-(.*)\\.html$ \/shop\\.php\\?nick=$1 [NU]<br \/>\nRewriteRule ^\/list-(.*)\\.html$ \/list\\.php\\?cid=$1<br \/>\nRewriteRule ^\/list\\.html$ \/list\\.php<br \/>\nRewriteRule ^\/huangou-(.*)\\.html$ \/huangou\\.php\\?id=$1<br \/>\nRewriteRule ^\/huan-(.*)-(.*)\\.html$ \/huan\\.php\\?keyword=$1&amp;page=$2 [NU]<br \/>\nRewriteRule ^\/huan\\.html$ \/huan\\.php<br \/>\nRewriteRule ^\/coupons-(.*)-(.*)\\.html$ \/coupons\\.php\\?cid=$1&amp;page=$2<br \/>\nRewriteRule ^\/coupons\\.html$ \/coupons\\.php<br \/>\nRewriteRule ^\/cuxiao-(.*)\\.html$ \/cuxiao\\.php\\?id=$1<br \/>\nRewriteRule ^\/tg-(.*)-(.*)-(.*)-(.*)-(.*)\\.html$ \/tg\\.php\\?city_id=$1&amp;catid=$2&amp;mallid=$3&amp;keyword=$4&amp;page=$5 [NU]<br \/>\nRewriteRule ^\/tg-(.*)-(.*)-(.*)-(.*)\\.html$ \/tg\\.php\\?city_id=$1&amp;catid=$2&amp;mallid=$3&amp;page=$4<br \/>\nRewriteRule ^\/tg-(.*)-(.*)-(.*)\\.html$ \/tg\\.php\\?city_id=$1&amp;catid=$2&amp;mallid=$3<br \/>\nRewriteRule ^\/tg-(.*)\\.html$ \/tg\\.php\\?city_id=$1<br \/>\nRewriteRule ^\/tg\\.html$ \/tg\\.php<br \/>\nRewriteRule ^\/tgview-(.*)\\.html$ \/tgview\\.php\\?id=$1<br \/>\nRewriteRule \/news\/(.*) \/news\/$1 [L][\/code]<br \/>\n\u4ee5\u4e0a\u662f\u5c0f\u7f16\u73b0\u6709\u7684\u535a\u5ba2httpd.ini\u89c4\u5219\uff0c\u901a\u5e38\u60c5\u51b5\u4e0b\u90fd\u662f\uff1a<\/p>\n<p>[code][ISAPI_Rewrite]<br \/>\n# 3600 = 1 hour<br \/>\nCacheClockRate 3600<br \/>\nRepeatLimit 32<br \/>\nRewriteRule ^\/index\\.html$ \/index\\.php [N,I]<br \/>\nRewriteRule ^(.*)\/index\\.html $1\/index\\.php [I]<br \/>\nRewriteRule ^(.*)\/page([0-9]+)\\.html $1\/index\\.php\\?gid=$2 [I]<br \/>\nRewriteRule ^(.*)\/list-([0-9]+)\\.html $1\/index\\.php\\?PageNo=$2 [I]<br \/>\nRewriteRule ^(.*)\/show-aid([0-9]+)\\.html $1\/show\\.php\\?uid=$2 [I][\/code]<br \/>\n\u73b0\u5728\u7531\u4e8eIIS8.0\u53ea\u652f\u6301web.config\u6240\u4ee5\u6211\u4eec\u5c06\u4ee5\u4e0a\u7684\u4ee3\u7801\u8f6c\u5316\u4e3a\uff1a<\/p>\n<p>[code]&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;UTF-8&#8243;?&gt;<br \/>\n&lt;configuration&gt;<br \/>\n&lt;system.webServer&gt;<br \/>\n&lt;staticContent&gt;<br \/>\n&lt;mimeMap fileExtension=&#8221;.bat&#8221; mimeType=&#8221;text\/bath&#8221; \/&gt;<br \/>\n&lt;\/staticContent&gt;<br \/>\n&lt;rewrite&gt;<br \/>\n&lt;rules&gt;<br \/>\n&lt;rule name=&#8221;home Index&#8221;&gt;<br \/>\n&lt;match url=&#8221;^index.html$&#8221; ignoreCase=&#8221;false&#8221; \/&gt;<br \/>\n&lt;action type=&#8221;Rewrite&#8221; url=&#8221;index.php&#8221; appendQueryString=&#8221;false&#8221; \/&gt;<br \/>\n&lt;\/rule&gt;<br \/>\n&lt;rule name=&#8221;page Index&#8221;&gt;<br \/>\n&lt;match url=&#8221;^(.*)\/index.html$&#8221; ignoreCase=&#8221;false&#8221; \/&gt;<br \/>\n&lt;action type=&#8221;Rewrite&#8221; url=&#8221;{R:1}\/index.php&#8221; appendQueryString=&#8221;false&#8221; \/&gt;<br \/>\n&lt;\/rule&gt;<br \/>\n&lt;rule name=&#8221;page List&#8221;&gt;<br \/>\n&lt;match url=&#8221;^(.*)page([0-9]+).html$&#8221; ignoreCase=&#8221;false&#8221; \/&gt;<br \/>\n&lt;action type=&#8221;Rewrite&#8221; url=&#8221;{R:1}\/index.php?gid={R:2}&#8221; appendQueryString=&#8221;false&#8221; \/&gt;<br \/>\n&lt;\/rule&gt;<br \/>\n&lt;rule name=&#8221;list Page&#8221;&gt;<br \/>\n&lt;match url=&#8221;^(.*)list-([0-9]+).html$&#8221; ignoreCase=&#8221;false&#8221; \/&gt;<br \/>\n&lt;action type=&#8221;Rewrite&#8221; url=&#8221;{R:1}\/.php?PageNo={R:2}&#8221; appendQueryString=&#8221;false&#8221; \/&gt;<br \/>\n&lt;\/rule&gt;<br \/>\n&lt;rule name=&#8221;show Page&#8221;&gt;<br \/>\n&lt;match url=&#8221;^(.*)show-aid([0-9]+).html$&#8221; ignoreCase=&#8221;false&#8221; \/&gt;<br \/>\n&lt;action type=&#8221;Rewrite&#8221; url=&#8221;{R:1}\/show.php?uid={R:2}&#8221; appendQueryString=&#8221;false&#8221; \/&gt;<br \/>\n&lt;\/rule&gt;<br \/>\n&lt;\/rules&gt;<br \/>\n&lt;\/rewrite&gt;<br \/>\n&lt;\/system.webServer&gt;<br \/>\n&lt;\/configuration&gt;[\/code]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5f88\u591a\u7ad9\u957f\u90fd\u5728IIS6.0\u53d1\u5e03\u7f51\u7ad9\u8981\u8ba9\u7f51\u7ad9\u652f\u6301\u4f2a\u9759\u6001\u53ea\u9700\u8981\u4fee\u6539httpd.ini\u5c31\u53ef\u4ee5\u7b80\u5355\u5b9e\u73b0\uff1a [code]R [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,11],"tags":[],"class_list":["post-2354","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\/2354","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=2354"}],"version-history":[{"count":0,"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/posts\/2354\/revisions"}],"wp:attachment":[{"href":"https:\/\/sdeno.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2354"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sdeno.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2354"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sdeno.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2354"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}