{"id":49360,"date":"2024-10-08T04:11:27","date_gmt":"2024-10-07T20:11:27","guid":{"rendered":"https:\/\/server.hk\/cnblog\/49360\/"},"modified":"2024-10-08T04:11:27","modified_gmt":"2024-10-07T20:11:27","slug":"win2008-r2-iis-7-iis-7-5-%e7%b3%bb%e7%b5%b1%e4%b8%8b-http-%e9%87%8d%e5%ae%9a%e5%90%91%ef%bc%88301-%e9%87%8d%e5%ae%9a%e5%90%91%ef%bc%89%e5%9c%96%e6%96%87%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/49360\/","title":{"rendered":"Win2008 R2 IIS 7\/IIS 7.5 \u7cfb\u7d71\u4e0b HTTP \u91cd\u5b9a\u5411\uff08301 \u91cd\u5b9a\u5411\uff09\u5716\u6587\u65b9\u6cd5"},"content":{"rendered":"<h1 id=\"win2008-r2-iis-7-iis-7-5-%e7%b3%bb%e7%b5%b1%e4%b8%8b-http-%e9%87%8d%e5%ae%9a%e5%90%91%ef%bc%88301-%e9%87%8d%e5%ae%9a%e5%90%91%ef%bc%89%e5%9c%96%e6%96%87%e6%96%b9%e6%b3%95-fSoLBHRPhu\">Win2008 R2 IIS 7\/IIS 7.5 \u7cfb\u7d71\u4e0b HTTP \u91cd\u5b9a\u5411\uff08301 \u91cd\u5b9a\u5411\uff09\u5716\u6587\u65b9\u6cd5<\/h1>\n<p>\u5728\u7db2\u7ad9\u7ba1\u7406\u4e2d\uff0cHTTP \u91cd\u5b9a\u5411\u662f\u4e00\u500b\u91cd\u8981\u7684\u6280\u8853\uff0c\u7279\u5225\u662f\u7576\u7db2\u7ad9\u7684\u7d50\u69cb\u6216\u57df\u540d\u767c\u751f\u8b8a\u66f4\u6642\u3002301 \u91cd\u5b9a\u5411\u662f\u4e00\u7a2e\u6c38\u4e45\u6027\u91cd\u5b9a\u5411\uff0c\u544a\u8a34\u641c\u7d22\u5f15\u64ce\u548c\u7528\u6236\uff0c\u539f\u59cb\u7db2\u5740\u5df2\u7d93\u6c38\u4e45\u79fb\u52d5\u5230\u65b0\u7db2\u5740\u3002\u672c\u6587\u5c07\u4ecb\u7d39\u5982\u4f55\u5728 Windows Server 2008 R2 \u7684 IIS 7 \u548c IIS 7.5 \u7cfb\u7d71\u4e2d\u8a2d\u7f6e 301 \u91cd\u5b9a\u5411\u3002<\/p>\n<h2 id=\"%e7%82%ba%e4%bb%80%e9%ba%bc%e4%bd%bf%e7%94%a8-301-%e9%87%8d%e5%ae%9a%e5%90%91%ef%bc%9f-fSoLBHRPhu\">\u70ba\u4ec0\u9ebc\u4f7f\u7528 301 \u91cd\u5b9a\u5411\uff1f<\/h2>\n<p>\u4f7f\u7528 301 \u91cd\u5b9a\u5411\u7684\u4e3b\u8981\u539f\u56e0\u5305\u62ec\uff1a<\/p>\n<ul>\n<li>\u4fdd\u6301 SEO \u6392\u540d\uff1a\u7576\u7db2\u7ad9\u5730\u5740\u8b8a\u66f4\u6642\uff0c301 \u91cd\u5b9a\u5411\u53ef\u4ee5\u5c07\u539f\u7db2\u5740\u7684\u6b0a\u91cd\u8f49\u79fb\u5230\u65b0\u7db2\u5740\uff0c\u907f\u514d\u6d41\u91cf\u640d\u5931\u3002<\/li>\n<li>\u6539\u5584\u7528\u6236\u9ad4\u9a57\uff1a\u7528\u6236\u5728\u8a2a\u554f\u820a\u7db2\u5740\u6642\uff0c\u6703\u81ea\u52d5\u88ab\u5f15\u5c0e\u5230\u65b0\u7db2\u5740\uff0c\u7121\u9700\u624b\u52d5\u8f38\u5165\u3002<\/li>\n<li>\u6e05\u7406\u6b7b\u93c8\u63a5\uff1a\u901a\u904e\u91cd\u5b9a\u5411\uff0c\u53ef\u4ee5\u6709\u6548\u7ba1\u7406\u548c\u6e05\u7406\u7db2\u7ad9\u4e2d\u7684\u6b7b\u93c8\u63a5\u3002<\/li>\n<\/ul>\n<h2 id=\"%e5%9c%a8-iis-7-iis-7-5-%e4%b8%ad%e8%a8%ad%e7%bd%ae-301-%e9%87%8d%e5%ae%9a%e5%90%91%e7%9a%84%e6%ad%a5%e9%a9%9f-fSoLBHRPhu\">\u5728 IIS 7\/IIS 7.5 \u4e2d\u8a2d\u7f6e 301 \u91cd\u5b9a\u5411\u7684\u6b65\u9a5f<\/h2>\n<h3 id=\"%e6%ad%a5%e9%a9%9f-1%ef%bc%9a%e6%89%93%e9%96%8b-iis-%e7%ae%a1%e7%90%86%e5%99%a8-fSoLBHRPhu\">\u6b65\u9a5f 1\uff1a\u6253\u958b IIS \u7ba1\u7406\u5668<\/h3>\n<p>\u9996\u5148\uff0c\u60a8\u9700\u8981\u6253\u958b IIS \u7ba1\u7406\u5668\u3002\u53ef\u4ee5\u901a\u904e\u4ee5\u4e0b\u6b65\u9a5f\u9032\u884c\uff1a<\/p>\n<ol>\n<li>\u9ede\u64ca\u300c\u958b\u59cb\u300d\u83dc\u55ae\uff0c\u9078\u64c7\u300c\u7ba1\u7406\u5de5\u5177\u300d\u3002<\/li>\n<li>\u9078\u64c7\u300cInternet Information Services (IIS) \u7ba1\u7406\u5668\u300d\u3002<\/li>\n<\/ol>\n<h3 id=\"%e6%ad%a5%e9%a9%9f-2%ef%bc%9a%e9%81%b8%e6%93%87%e7%b6%b2%e7%ab%99-fSoLBHRPhu\">\u6b65\u9a5f 2\uff1a\u9078\u64c7\u7db2\u7ad9<\/h3>\n<p>\u5728 IIS \u7ba1\u7406\u5668\u4e2d\uff0c\u627e\u5230\u60a8\u60f3\u8981\u8a2d\u7f6e\u91cd\u5b9a\u5411\u7684\u7db2\u7ad9\u3002\u5c55\u958b\u5de6\u5074\u7684\u6a39\u72c0\u7d50\u69cb\uff0c\u7136\u5f8c\u9078\u64c7\u76f8\u61c9\u7684\u7db2\u7ad9\u3002<\/p>\n<h3 id=\"%e6%ad%a5%e9%a9%9f-3%ef%bc%9a%e6%89%93%e9%96%8b-url-%e9%87%8d%e5%af%ab%e6%a8%a1%e5%a1%8a-fSoLBHRPhu\">\u6b65\u9a5f 3\uff1a\u6253\u958b URL \u91cd\u5beb\u6a21\u584a<\/h3>\n<p>\u5982\u679c\u60a8\u5c1a\u672a\u5b89\u88dd URL \u91cd\u5beb\u6a21\u584a\uff0c\u8acb\u5148\u4e0b\u8f09\u4e26\u5b89\u88dd\u3002\u5b89\u88dd\u5b8c\u6210\u5f8c\uff0c\u60a8\u53ef\u4ee5\u5728\u7db2\u7ad9\u7684\u529f\u80fd\u8996\u5716\u4e2d\u627e\u5230\u300cURL \u91cd\u5beb\u300d\u9078\u9805\u3002<\/p>\n<h3 id=\"%e6%ad%a5%e9%a9%9f-4%ef%bc%9a%e6%b7%bb%e5%8a%a0%e9%87%8d%e5%ae%9a%e5%90%91%e8%a6%8f%e5%89%87-fSoLBHRPhu\">\u6b65\u9a5f 4\uff1a\u6dfb\u52a0\u91cd\u5b9a\u5411\u898f\u5247<\/h3>\n<p>\u5728\u300cURL \u91cd\u5beb\u300d\u4e2d\uff0c\u9ede\u64ca\u53f3\u5074\u7684\u300c\u6dfb\u52a0\u898f\u5247\u300d\u9078\u9805\uff0c\u7136\u5f8c\u9078\u64c7\u300c\u7a7a\u767d\u898f\u5247\u300d\u3002\u63a5\u4e0b\u4f86\uff0c\u60a8\u9700\u8981\u8a2d\u7f6e\u4ee5\u4e0b\u53c3\u6578\uff1a<\/p>\n<ul>\n<li><strong>\u540d\u7a31\uff1a<\/strong>\u70ba\u60a8\u7684\u898f\u5247\u547d\u540d\uff0c\u4f8b\u5982\u300c301 \u91cd\u5b9a\u5411\u300d\u3002<\/li>\n<li><strong>\u5339\u914d URL\uff1a<\/strong>\u9078\u64c7\u300c\u6b63\u5247\u8868\u9054\u5f0f\u300d\uff0c\u4e26\u5728\u300c\u6a21\u5f0f\u300d\u4e2d\u8f38\u5165\u60a8\u60f3\u8981\u91cd\u5b9a\u5411\u7684\u820a\u7db2\u5740\u7684\u6a21\u5f0f\u3002<\/li>\n<li><strong>\u689d\u4ef6\uff1a<\/strong>\u5982\u679c\u9700\u8981\uff0c\u53ef\u4ee5\u6dfb\u52a0\u689d\u4ef6\u4f86\u9650\u5236\u91cd\u5b9a\u5411\u7684\u60c5\u6cc1\u3002<\/li>\n<li><strong>\u52d5\u4f5c\uff1a<\/strong>\u9078\u64c7\u300c\u91cd\u5b9a\u5411\u300d\uff0c\u4e26\u5728\u300c\u91cd\u5b9a\u5411 URL\u300d\u4e2d\u8f38\u5165\u65b0\u7684\u7db2\u5740\u3002\u78ba\u4fdd\u9078\u64c7\u300c301 \u6c38\u4e45\u91cd\u5b9a\u5411\u300d\u4f5c\u70ba\u91cd\u5b9a\u5411\u985e\u578b\u3002<\/li>\n<\/ul>\n<h3 id=\"%e6%ad%a5%e9%a9%9f-5%ef%bc%9a%e4%bf%9d%e5%ad%98%e8%a6%8f%e5%89%87-fSoLBHRPhu\">\u6b65\u9a5f 5\uff1a\u4fdd\u5b58\u898f\u5247<\/h3>\n<p>\u5b8c\u6210\u8a2d\u7f6e\u5f8c\uff0c\u9ede\u64ca\u300c\u61c9\u7528\u300d\u4ee5\u4fdd\u5b58\u898f\u5247\u3002\u73fe\u5728\uff0c\u7576\u7528\u6236\u8a2a\u554f\u820a\u7db2\u5740\u6642\uff0c\u4ed6\u5011\u5c07\u81ea\u52d5\u88ab\u91cd\u5b9a\u5411\u5230\u65b0\u7db2\u5740\u3002<\/p>\n<h2 id=\"%e6%b8%ac%e8%a9%a6%e9%87%8d%e5%ae%9a%e5%90%91-fSoLBHRPhu\">\u6e2c\u8a66\u91cd\u5b9a\u5411<\/h2>\n<p>\u8a2d\u7f6e\u5b8c\u6210\u5f8c\uff0c\u5efa\u8b70\u60a8\u4f7f\u7528\u700f\u89bd\u5668\u6216\u5728\u7dda\u5de5\u5177\u6e2c\u8a66\u91cd\u5b9a\u5411\u662f\u5426\u6b63\u5e38\u5de5\u4f5c\u3002\u8f38\u5165\u820a\u7db2\u5740\uff0c\u6aa2\u67e5\u662f\u5426\u6b63\u78ba\u8df3\u8f49\u5230\u65b0\u7db2\u5740\u3002<\/p>\n<h2 id=\"%e7%b8%bd%e7%b5%90-fSoLBHRPhu\">\u7e3d\u7d50<\/h2>\n<p>\u5728 Windows Server 2008 R2 \u7684 IIS 7 \u548c IIS 7.5 \u7cfb\u7d71\u4e2d\u8a2d\u7f6e 301 \u91cd\u5b9a\u5411\u662f\u4e00\u500b\u7c21\u55ae\u800c\u6709\u6548\u7684\u904e\u7a0b\u3002\u901a\u904e\u6b63\u78ba\u7684\u91cd\u5b9a\u5411\u8a2d\u7f6e\uff0c\u60a8\u53ef\u4ee5\u4fdd\u6301\u7db2\u7ad9\u7684 SEO \u6392\u540d\uff0c\u6539\u5584\u7528\u6236\u9ad4\u9a57\uff0c\u4e26\u6709\u6548\u7ba1\u7406\u7db2\u7ad9\u93c8\u63a5\u3002\u5982\u679c\u60a8\u9700\u8981\u66f4\u591a\u6709\u95dc <a href=\"https:\/\/server.hk\">\u9999\u6e2f VPS<\/a> \u548c <a href=\"https:\/\/server.hk\">\u4f3a\u670d\u5668<\/a> \u7684\u8cc7\u8a0a\uff0c\u8acb\u8a2a\u554f\u6211\u5011\u7684\u7db2\u7ad9\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to set up HTTP 301 redirects in Win2008 R2 IIS 7\/IIS 7.5 with this step-by-step guide featuring images for easy implementation.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4924],"tags":[],"class_list":["post-49360","post","type-post","status-publish","format-standard","hentry","category-setup-tutorials"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/49360","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=49360"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/49360\/revisions"}],"predecessor-version":[{"id":49361,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/49360\/revisions\/49361"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=49360"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=49360"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=49360"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}