﻿{"id":602,"date":"2010-01-13T00:17:00","date_gmt":"2010-01-12T16:17:00","guid":{"rendered":"http:\/\/blog.jixin.ntxz.net\/?p=602"},"modified":"2010-07-30T15:40:40","modified_gmt":"2010-07-30T07:40:40","slug":"%e6%b5%85%e8%b0%88301%e6%b0%b8%e4%b9%85%e9%87%8d%e5%ae%9a%e5%90%91","status":"publish","type":"post","link":"http:\/\/www.ntxz.net\/?p=602","title":{"rendered":"\u6d45\u8c08301\u6c38\u4e45\u91cd\u5b9a\u5411"},"content":{"rendered":"<p><a href=\"http:\/\/baike.baidu.com\/view\/2380509.htm\" target=_blank><\/a>\u4ee5\u4e0b\u6587\u7ae0\u9ad8\u624b\u5c31\u8bf7\u5ffd\u7565\uff0c\u8fd9\u662f\u4e00\u7bc7\u5173\u4e8e3XX\u72b6\u6001\u7684\u626b\u76f2\u6587\u7ae0\u3002<br \/>\u5728HTTP\u534f\u8bae\u4e2d\uff0c\u4f7f\u7528\u4e09\u4e2a\u6570\u5b57\u4ee3\u8868HTTP\u534f\u8bae\u72b6\u6001\u3002<\/p>\n<p>HTTP\u72b6\u6001\u4ee3\u7801\u662f\u5728Web\u670d\u52a1\u5668\u8fd4\u56de\u6570\u636e\u7684\u7b2c\u4e00\u884c\u5b9e\u73b0\u7684<\/p>\n<p>\u6bd4\u5982\u4f60\u8bbf\u95ee<a href=\"http:\/\/www.baidu.com\/\">http:\/\/www.baidu.com\/<\/a>\uff0c\u767e\u5ea6\u7684\u670d\u52a1\u5668\u4f1a\u8fd4\u56de\u7684\u6570\u636e\u7b2c\u4e00\u884c\u662f\uff1a<br \/><strong>HTTP\/1.1 200 OK<\/strong><br \/>\u8fd9\u91cc\u5c31\u8bf4\u660e\u767e\u5ea6\u8fd4\u56de\u7684\u72b6\u6001\u662f200\uff0c\u534f\u8bae\u662fHTTP\/1.1\uff0c\u72b6\u6001\u63cf\u8ff0\u662fOK\u3002<\/p>\n<p>\u5927\u5bb6\u90fd\u77e5\u9053g.cn\u8fd9\u4e2agoogle\u7684\u7f51\u5740\uff0c\u8fd9\u4e2a\u7f51\u5740\u4f1a\u8f6c\u8df3\u5230<a href=\"http:\/\/www.google.cn\/\">http:\/\/www.google.cn<\/a>\u4e0a\uff0c\u5f53\u6211\u4eec\u8bbf\u95eeg.cn\u7684\u65f6\u5019\u7b2c\u4e00\u884c\u8fd4\u56de\u7684\u662f\uff1a<br \/><strong>HTTP\/1.1 301 Moved Permanently<\/strong><br \/>\u8bf4\u660e\u72b6\u6001\u662f301\uff0c\u72b6\u6001\u63cf\u8ff0\u662fMoved Permanently\uff0c\u76f4\u8bd1\u4e3a\u201c\u6c38\u4e45\u8f6c\u79fb\u201d\uff0c\u8fd9\u91ccg.cn\u7528\u5230\u7684\u5c31\u662f<span style=\"http:\/\/blog.cnbytes.net\/COLOR: #ff0000\">\u6c38\u4e45\u91cd\u5b9a\u5411<\/span>\u3002<\/p>\n<p>\u5927\u5bb6\u4f1a\u95ee\uff0c\u600e\u4e48\u770b\u5230\u8fd9\u4e2a\u201c<strong>HTTP\/1.1 200 OK<\/strong>\u201d\u8fd9\u6837\u7684\u72b6\u6001\uff0c\u8fd9\u91cc\u9700\u8981\u4e00\u4e2a\u80fd\u591f\u76d1\u63a7IE\u6d4f\u89c8\u5668\u901a\u8baf\u7684\u7a0b\u5e8f\uff0c\u6211\u7528\u7684\u662f<strong>HttpWatch 4.0 Professional \u4e13\u4e1a\u7248<\/strong>\uff0c\u4e0b\u8f7d\u5730\u5740\u201chttp:\/\/link.silmoon.net\/r\/down_s4_11\/HttpWatch.rar\u201d\uff0c\u5b89\u88c5\u540e\u4ece<em>[\u67e5\u770b(<span style=\"TEXT-DECORATION: underline\">V<\/span>)]-&gt;[\u6d4f\u89c8\u5668\u680f(<span style=\"TEXT-DECORATION: underline\">E<\/span>)]<\/em>\u627e\u5230<em>HttpWatch<\/em>\uff0c\u4e4b\u540e\u4f1a\u770b\u5230\u8fd9\u4e2a\u5de5\u5177\u5df2\u7ecf\u663e\u793a\u51fa\u6765\u4e86\uff0c\u5728\u6b64\u4e0d\u591a\u8bf4\u8fd9\u4e2a\u7a0b\u5e8f\u600e\u4e48\u4f7f\u7528\u4e86\u3002<\/p>\n<p><a href=\"http:\/\/www.silmoon.com\/site\/Article\/UploadFiles\/201001\/2010011122531477.jpg\" target=_blank><img decoding=\"async\" style=\"http:\/\/blog.cnbytes.net\/BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; MARGIN-LEFT: 0px; MARGIN-RIGHT: 0px; BORDER-RIGHT-WIDTH: 0px\" height=273 alt=\"\" hspace=0 src=\"http:\/\/www.silmoon.com\/site\/Article\/UploadFiles\/201001\/2010011122531477.jpg\" width=597 border=0><\/a><br \/><a href=\"http:\/\/www.silmoon.com\/site\/Article\/UploadFiles\/201001\/2010011122531453.jpg\" target=_blank><img decoding=\"async\" style=\"http:\/\/blog.cnbytes.net\/BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; MARGIN-LEFT: 0px; MARGIN-RIGHT: 0px; BORDER-RIGHT-WIDTH: 0px\" height=284 alt=\"\" hspace=0 src=\"http:\/\/www.silmoon.com\/site\/Article\/UploadFiles\/201001\/2010011122531453.jpg\" width=597 border=0><\/a><\/p>\n<p><strong><span style=\"FONT-SIZE: medium\">\u7b80\u5355\u4ecb\u7ecd\u51e0\u4e2a\u72b6\u6001\u4ee3\u7801(<a href=\"http:\/\/baike.baidu.com\/view\/2380509.htm\" target=_blank>\u66f4\u591a\u4fe1\u606f\u53ef\u53c2\u8003<\/a>)<\/span><\/strong><\/p>\n<p>\u57281XX\u4e2d\uff0c\u662fInformational\u548c\u5b9e\u9a8c\u6027\u4f7f\u7528\u7684\u534f\u8bae\uff0c\u51e0\u4e4e\u6839\u672c\u4e0d\u7528\uff0c\u5c31\u6b64\u5ffd\u7565\u3002<\/p>\n<p>200 OK\uff1a\u8868\u793a\u8bf7\u6c42\u5df2\u7ecf\u63a5\u53d7\uff0c\u5ba2\u6237\u6240\u9700\u8981\u7684\u4fe1\u606f\u5df2\u7ecf\u6210\u529f\u7684\u8fd4\u56de\u7ed9\u5ba2\u6237\u3002<br \/>206 Partial Content\uff1a\u90e8\u5206\u5185\u5bb9\uff0c\u5982\u679c\u5ba2\u6237\u7aef\u8bf7\u6c42\u7684\u662f\u8f83\u5927\u7684\u8d44\u6e90\uff0c\u6bd4\u5982\u4e0b\u8f7d\uff0cMP3\uff0c\u4f1a\u88ab\u5206\u6bb5\u4f20\u9001\u3002\u6b64\u72b6\u6001\u8868\u793a\u8fd9\u662f\u5176\u4e2d\u7684\u4e00\u90e8\u5206\u3002<\/p>\n<p>300 Multiple Choices\uff1a\u53ef\u9009\u91cd\u5b9a\u5411\uff0c\u8868\u793a\u5ba2\u6237\u8bf7\u6c42\u7684\u8d44\u6e90\u5df2\u7ecf\u88ab\u8f6c\u5411\u5230\u53e6\u5916\u7684\u5730\u5740\u4e86\uff0c\u4f46\u662f\u6ca1\u6709\u8bf4\u660e\u662f\u5426\u662f\u6c38\u4e45\u91cd\u5b9a\u5411\u8fd8\u662f\u4e34\u65f6\u91cd\u5b9a\u5411\u3002<br \/>301 Moved Permanently\uff1a\u6c38\u4e45\u91cd\u5b9a\u5411\uff0c\u540c\u4e0a\uff0c\u4f46\u662f\u8fd9\u4e2a\u72b6\u6001\u4f1a\u544a\u77e5\u5ba2\u6237\u8bf7\u6c42\u7684\u8d44\u6e90\u5df2\u7ecf<strong>\u6c38\u4e45\u6027<\/strong>\u7684\u5b58\u5728\u5728\u65b0\u7684\u91cd\u5b9a\u5411\u7684URL\u4e0a\u3002<br \/>302 Moved Temporatily\uff1a\u4e34\u65f6\u91cd\u5b9a\u5411\uff0c\u5728HTTP1.1\u4e2d\u72b6\u6001\u63cf\u8ff0\u662fFound\uff0c\u8fd9\u4e2a\u548c300\u4e00\u6837\uff0c\u4f46\u662f\u8bf4\u660e\u8bf7\u6c42\u7684\u8d44\u6e90<strong>\u4e34\u65f6<\/strong>\u88ab\u8f6c\u79fb\u5230\u65b0\u7684URL\u4e0a\uff0c\u5728\u4ee5\u540e\u53ef\u80fd\u4f1a\u518d\u6b21\u53d8\u52a8\u6216\u8005\u6b64URL\u4f1a\u6b63\u5e38\u8bf7\u6c42\u5ba2\u6237\u7684\u8fde\u63a5\u3002<\/p>\n<p>400 Bad Request\uff1a\u574f\u7684\u8bf7\u6c42\uff0c\u8fd9\u5728IIS\u91cc\u5e38\u89c1\uff0c\u5176\u8868\u73b0\u4e3a\uff08I<span style=\"FONT-SIZE: x-small\"><font size=1>nvalid Hostname<\/font><\/span>\uff09\u5931\u8d25\u7684\u4e3b\u673a\u5934\uff0c\u53e6\u5916\u5176\u4ed6\u7684\u5931\u8d25\u7684\u574f\u8bf7\u6c42\u90fd\u662f\u6b64\u72b6\u6001\u3002<br \/>403 Forbidden\uff1a\u7981\u6b62\u72b6\u6001\uff0c\u6b64\u72b6\u6001\u662f\u660e\u663e\u7684\u7981\u6b62\u7528\u6237\u548c\u62d2\u7edd\u7528\u6237\u7684\u8bf7\u6c42\uff01<br \/>404 Not Found\uff1a\u8bf7\u6c42\u7684\u5730\u5740\u548c\u8d44\u6e90\u6ca1\u6709\u627e\u5230\u3002<\/p>\n<p>500 Internal Server Error\uff1a\u5185\u90e8\u670d\u52a1\u5668\u9519\u8bef\u3002<br \/>503 Service Unavailable\uff1a\u670d\u52a1\u5668\u4e0d\u53ef\u7528\uff0c\u8868\u793aWeb\u670d\u52a1\u5668\u5df2\u7ecf\u5d29\u6e83\u6216\u8005\u8d85\u8f7d\u8fd0\u884c\uff0c\u6b64\u72b6\u6001\u5c31\u662f\u660e\u786e\u7684\u544a\u8bc9\u7528\u6237\uff0c\u73b0\u5728\u670d\u52a1\u5668\u6709\u95ee\u9898\u3002<\/p>\n<p><strong><span style=\"FONT-SIZE: medium\">\u4ec0\u4e48\u662f\u7cbe\u786e\u91cd\u5b9a\u5411\uff1f<\/span><\/strong><\/p>\n<p>\u5f53\u4f60\u8bbf\u95ee<a href=\"http:\/\/www.111.cn\/myPage.aspx\">http:\/\/www.111.cn\/myPage.aspx<\/a>\u60f3\u8f6c\u5411\u5230<a href=\"http:\/\/www.111.com\/myPage.aspx\">http:\/\/www.111.com\/myPage.aspx<\/a>\u8fd9\u53eb\u7cbe\u786e\u91cd\u5b9a\u5411\uff0c\u5c31\u662f\u4ec5\u4ec5\u57df\u540d\u53d8\u4e86\uff0c\u4f46\u662f\u540e\u9762\u7684\u8def\u5f84\u4f9d\u65e7\u5b58\u5728\uff0c\u76f8\u53cd\uff0c\u5c31\u662f\u4e0d\u7ba1\u8bbf\u95ee\u90a3\u4e2a\u9875\u9762\uff0c\u90fd\u91cd\u5b9a\u5411\u5230\u4e00\u4e2a\u65b0\u7684\u6307\u5b9a\u7684\u9875\u9762\u3002<\/p>\n<p><strong><span style=\"FONT-SIZE: medium\">\u89e3\u91ca3xx\u72b6\u6001<\/span><\/strong><\/p>\n<p>\u6211\u4eec\u4ee5301\u6c38\u4e45\u91cd\u5b9a\u5411\u4e3a\u4f8b\u3002\u6211\u4eec\u53d1\u8bf7\u6c42\u7ed9g.cn\uff0c\u770b\u5230HttpWatch\u7684\u4fe1\u606f<\/p>\n<table cellSpacing=0 cellPadding=6 width=\"95%\" align=center border=0>\n<tbody>\n<tr>\n<td bgColor=#fdfddf><span>\u4ee5\u4e0b\u662f\u4ee3\u7801\u7247\u6bb5\uff1a<\/span><br \/><strong><span style=\"COLOR: #990000\">HTTP\/1.1 301 Moved Permanently<br \/>Cache-Control:&nbsp;private, max-age=2592000<br \/>Content-Length:&nbsp;235<br \/>Content-Type:&nbsp;text\/html; charset=UTF-8<br \/>Date:&nbsp;Mon, 11 Jan 2010 13:58:44 GMT<br \/>Expires:&nbsp;Mon, 11 Jan 2010 13:58:44 GMT<br \/>Location:&nbsp;http:\/\/www.google.cn\/webhp?source=g_cn<br \/>Server:&nbsp;gws<br \/>X-XSS-Protection:&nbsp;0<\/span><\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6b64\u72b6\u6001\u660e\u663e\u8bf4\u660e301\u6c38\u4e45\u91cd\u5b9a\u5411\uff0c\u4f46\u662f\u4ece\u5b9a\u5411\u5230\u54ea\u91cc\u5462\uff1f\uff1f\u770b\u4e0b\u9762\u6709\u4e00\u4e2aLocation: <a href=\"http:\/\/www.google.cn\/webhp?source=g_cn\">http:\/\/www.google.cn\/webhp?source=g_cn<\/a>\uff0cLocation\u7684\u610f\u601d\u662f\u4f4d\u7f6e\uff0c\u4e00\u4e2a3xx\u7684\u8bf7\u6c42\u5fc5\u987b\u5305\u542bLocation\u5b57\u6bb5\u4fe1\u606f\uff0c\u5426\u5219\u5c06\u4e0d\u77e5\u9053\u8f6c\u5411\u5230\u54ea\u91cc\u3002<\/p>\n<p><strong><span style=\"FONT-SIZE: medium\">\u5728\u7a0b\u5e8f\u4e2d\u5b9e\u73b03xx\u72b6\u6001<\/span><\/strong><\/p>\n<p><strong>ASP\uff1a<\/strong><br \/>\u5728ASP\u7684\u7f16\u7a0b\u4e2d\u6709\u4e00\u4e2a\u65b9\u6cd5\u6216\u8005\u8bf4\u662f\u51fd\u6570\u53ef\u4ee5\u63a7\u5236\u72b6\u6001\u884c\u7684\u5b57\u7b26\uff0c\u5e76\u4e14\u53ef\u4ee5\u6dfb\u52a0Location\u8fd9\u6837\u7684\u5b57\u6bb5\u3002<\/p>\n<table cellSpacing=0 cellPadding=6 width=\"95%\" align=center border=0>\n<tbody>\n<tr>\n<td bgColor=#fdfddf><span>\u4ee5\u4e0b\u662f\u4ee3\u7801\u7247\u6bb5\uff1a<\/span><br \/><span style=\"COLOR: #990000\"><strong>&lt;%<br \/>Response.Status = 301 <\/strong><\/span><strong><span style=\"COLOR: #55aa66\">\u2018\u8868\u793a\u72b6\u6001\u5207\u6362\u6210301<br \/><\/span><span style=\"COLOR: #990000\">Response.AddHeader \u201cLocation\u201d,\u201dhttp:\/\/www.baidu.com\/\u201d <\/span><span style=\"COLOR: #55aa66\">\u2018\u5728\u5934\u4e2d\u6dfb\u52a0Location\u5b57\u6bb5\uff0c\u5176\u5185\u5bb9\u662f\u767e\u5ea6\u7684\u7f51\u5740\u3002<\/span><br \/><span style=\"COLOR: #990000\">%&gt;<\/span><\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<table cellSpacing=0 cellPadding=6 width=\"95%\" align=center border=0>\n<tbody>\n<tr>\n<td bgColor=#fdfddf><span>\u4ee5\u4e0b\u662f\u4ee3\u7801\u7247\u6bb5\uff08\u7cbe\u786e\u91cd\u5b9a\u5411\uff09\uff1a<\/span><br \/><strong><span style=\"COLOR: #990000\">&lt;%<br \/>Response.Status = 301 <span style=\"COLOR: #55aa66\">\u2018\u8868\u793a\u72b6\u6001\u5207\u6362\u6210301<br \/><\/span>Response.AddHeader \u201cLocation\u201d,\u201dhttp:\/\/www.baidu.com\/\u201d&amp;Request.ServerVariables(\u201cHTTP_X_REWRITE_URL\u201d) <span style=\"COLOR: #55aa66\">\u2018\u5728\u5934\u4e2d\u6dfb\u52a0Location\u5b57\u6bb5\uff0c\u5176\u5185\u5bb9\u662f\u767e\u5ea6\u7684\u7f51\u5740\u3002<\/span><br \/>%&gt;<\/span><\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u8fd9\u662f\u6c38\u4e45\u91cd\u5b9a\u5411\u7684\u5b9e\u73b0\u65b9\u6cd5\uff0c\u6709\u4eba\u8bf4Response.Redirect\u4e5f\u53ef\u4ee5\u91cd\u5b9a\u5411\uff0c\u4f46\u662f\u4f60\u6700\u597d\u7528HttpWatch\u770b\u770b\u5230\u5e95\u662f\u4e0d\u662f301\uff01<br \/>Request.ServerVariables(\u201cHTTP_X_REWRITE_URL\u201d)\u662fASP\u4e2d\u83b7\u5f97\u8bf7\u6c42\u8def\u5f84\u7684\u65b9\u6cd5\u3002<\/p>\n<p><strong>PHP\uff1a<br \/><\/strong>\u548cASP\u4e00\u6837\uff0c\u4e5f\u662f\u4e24\u6b65<\/p>\n<table cellSpacing=0 cellPadding=6 width=\"95%\" align=center border=0>\n<tbody>\n<tr>\n<td bgColor=#fdfddf><span>\u4ee5\u4e0b\u662f\u4ee3\u7801\u7247\u6bb5\uff1a<\/span><br \/><strong><span style=\"COLOR: #990000\">&lt;?php<br \/>header(\u201cHTTP\/1.1 301 Moved Permanently\u201d);<br \/>header(\u201cLocation: <a href=\"http:\/\/www.baidu.com\/\u201d)\" rel=nofollow>http:\/\/www.baidu.com\/\u201d)<\/a>;<br \/>?&gt; <\/span><\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<table cellSpacing=0 cellPadding=6 width=\"95%\" align=center border=0>\n<tbody>\n<tr>\n<td bgColor=#fdfddf><span>\u4ee5\u4e0b\u662f\u4ee3\u7801\u7247\u6bb5\uff08\u7cbe\u786e\u91cd\u5b9a\u5411\uff09\uff1a<\/span><br \/><strong><span style=\"COLOR: #990000\">&lt;?php<br \/>header(\u201cHTTP\/1.1 301 Moved Permanently\u201d);<br \/>header(\u201cLocation: <a href=\"http:\/\/www.baidu.com\/\u201d.$_SERVER\" rel=nofollow>http:\/\/www.baidu.com\/\u201d.$_SERVER<\/a>&#8220;REQUEST_URI&#8221;]);<br \/>?&gt; <\/span><\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5728PHP\u4e2dheader()\u8fd9\u4e2a\u65b9\u6cd5\u76f4\u63a5\u53ef\u4ee5\u5bf9HTTP\u5934\u90e8\u4fe1\u606f\u8fdb\u884c***\u4f5c\uff0c\u5982\u679c\u4e0d\u5199\u201cheader(\u201cHTTP\/1.1 301 Moved Permanently\u201d); \u201d\u8fd9\u4e2a\u7684\u8bdd\u4e5f\u53ef\u4ee5\u8f6c\u5411\uff0c\u4e0d\u8fc7\u548cASP\u7684Response.Redirect\u4e00\u6837\uff0c\u72b6\u6001\u4e0d\u4f1a\u662f301\u800c\u662f300\u3002<\/p>\n<p><strong>ASP.net\uff1a<br \/><\/strong>\u4e5f\u662f\u4e24\u6b65<\/p>\n<table cellSpacing=0 cellPadding=6 width=\"95%\" align=center border=0>\n<tbody>\n<tr>\n<td bgColor=#fdfddf><span>\u4ee5\u4e0b\u662f\u4ee3\u7801\u7247\u6bb5\uff1a<\/span><br \/><strong><span style=\"COLOR: #990000\">&lt;%@ Page Language=\u201dC#\u201d %&gt;<br \/>&lt;%<br \/>&nbsp;&nbsp;&nbsp; Response.Status = \u201cHTTP\/1.1 301 Moved Permanently\u201d;<br \/>&nbsp;&nbsp;&nbsp; Response.Headers.Add(\u201cLocation\u201d, <a href=\"http:\/\/www.baidu.com\/)\" rel=nofollow>http:\/\/www.baidu.com\/)<\/a>;<br \/>%&gt;<br \/><\/span><\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<table cellSpacing=0 cellPadding=6 width=\"95%\" align=center border=0>\n<tbody>\n<tr>\n<td bgColor=#fdfddf><span>\u4ee5\u4e0b\u662f\u4ee3\u7801\u7247\u6bb5\uff08\u7cbe\u786e\u91cd\u5b9a\u5411\uff09\uff1a<\/span><br \/><strong><span style=\"COLOR: #990000\">&lt;%@ Page Language=\u201dC#\u201d %&gt;<br \/>&lt;%<br \/>&nbsp;&nbsp;&nbsp; Response.Status = \u201cHTTP\/1.1 301 Moved Permanently\u201d;<br \/>&nbsp;&nbsp;&nbsp; Response.Headers.Add(\u201cLocation\u201d, \u201chttp:\/\/www.baidu.com\/\u201d.Request.ServerVariables(\u201cHTTP_X_REWRITE_URL\u201d));<br \/>%&gt;<br \/><\/span><\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"FONT-SIZE: x-large\"><strong><font size=5>\u7b56\u7565<\/font><\/strong><\/span><\/p>\n<p><span style=\"FONT-SIZE: x-small\"><font size=1>\u8981\u5b9e\u73b0\u91cd\u5b9a\u5411\uff0c\u5c31\u8981\u4fdd\u8bc1\u7528\u6237\u8bbf\u95ee\u7684\u6240\u6709\u5730\u5740\u90fd\u6267\u884c\u4e86\u4e0a\u9762\u7684\u4ee3\u7801\uff0c\u5982\u679c\u6709\u6761\u4ef6\u53ef\u4ee5\u5c06\u6240\u6709\u8bf7\u6c42Rewrite\u5230\u4e00\u4e2a\u8fd9\u6837\u7684\u6587\u4ef6\uff0c\u5982\u679c\u4e0d\u884c\uff0c\u5c31\u60f3\u529e\u6cd5\u90fd\u8981\u6267\u884c\u8fd9\u4e2a\u4ee3\u7801\uff0c\u5176\u4e2d\u6709\u5f88\u591a\u529e\u6cd5\uff0c\u6bd4\u5982dedecms\u65e0\u8bba\u8bbf\u95ee\u4ec0\u4e48\u5730\u5740\u90fd\u6267\u884c\u4e86common.inc.php\u8fd9\u4e2a\u6587\u4ef6\uff0c\u5927\u5bb6\u5c31\u53ef\u4ee5\u4e0a\u9762\u7684\u4ee3\u7801\u653e\u5230\u8fd9\u4e2a\u6587\u4ef6\u4e2d\u3002<\/font><\/span><\/p>\n<p><span style=\"FONT-SIZE: x-small\"><font size=1>\u53e6\u5916\u540c\u4e00\u7a7a\u95f4\u5b9e\u73b0\u5224\u65ad\u91cd\u5b9a\u5411\uff0c\u5982\u679c\u4e00\u4e2a\u7a7a\u95f4\u7ed1\u5b9a\u4e86\u4e24\u4e2a\u57df\u540d<\/font><\/span><\/p>\n<p><span style=\"FONT-SIZE: x-small\"><a href=\"http:\/\/www.111.cn\/\"><font size=1>http:\/\/www.111.cn<\/font><\/a><br \/><a href=\"http:\/\/www.111.com\/\"><font size=1>http:\/\/www.111.com<\/font><\/a><\/span><\/p>\n<p><span style=\"FONT-SIZE: x-small\"><font size=1>\u5982\u679c\u7528\u6237\u8bbf\u95ee\u7684\u662f<\/font><a href=\"http:\/\/www.111.cn\/index.asp?page=2\"><font size=1>http:\/\/www.111.cn\/index.asp?page=2<\/font><\/a><font size=1>\u8fd9\u6837\u7684\u7f51\u7ad9\u91cd\u5b9a\u5411\u5230<\/font><a href=\"http:\/\/www.111.com\/index.asp?page=2\"><font size=1>http:\/\/www.111.com\/index.asp?page=2<\/font><\/a><font size=1>\uff0c\u5728\u540c\u4e00\u7a7a\u95f4\u5982\u4f55\u5b9e\u73b0\uff0c\u8fd9\u91cc\u662f\u4ee5ASP\u7f16\u7a0b\u505a\u7684\u4f8b\u5b50\uff0c\u5982\u679c\u60f3\u5224\u65ad\u662fcn\u7684\u57df\u540d\u5c31\u8fdb\u884c\u8f6c\u5411\uff0c\u4e0d\u662fcom\u7684\u57df\u540d\u5c31\u4e0d\u8f6c\u5411\u53ef\u4ee5\u901a\u8fc7\u7f16\u7a0b\u65b9\u6cd5\u5b9e\u73b0\u5224\u65ad<\/font><\/span><\/p>\n<table cellSpacing=0 cellPadding=6 width=\"95%\" align=center border=0>\n<tbody>\n<tr>\n<td bgColor=#fdfddf><span>\u4ee5\u4e0b\u662f\u4ee3\u7801\u7247\u6bb5\uff08\u7cbe\u786e\u91cd\u5b9a\u5411\uff09\uff1a<\/span><br \/><strong><span style=\"COLOR: #990000\">&lt;%<\/span><\/strong><strong><span style=\"COLOR: #990000\"><br \/>comDomain = \u201cwww.111.com\u201d <span style=\"COLOR: #55aa66\">\u2018\u5b9a\u4e49COM\u57df\u540d<\/span><\/span><\/strong> <\/p>\n<p><strong><span style=\"COLOR: #990000\"><\/span><\/strong><strong><span style=\"COLOR: #990000\">If Request.ServerVariables(\u201cSERVER_NAME\u201d) &lt;&gt; comDomain Then <span style=\"COLOR: #55aa66\">\u2018\u5982\u679c\u8bf7\u6c42\u7684\u57df\u540d\u4e0d\u662fcom\u7684\u57df\u540d<\/span><br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Response.Status = 301 <span style=\"COLOR: #55aa66\">\u2018\u8868\u793a\u72b6\u6001\u5207\u6362\u6210301<br \/><\/span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Response.AddHeader \u201cLocation\u201d,\u201dhttp:\/\/\u201d &amp; comDomain&nbsp;&amp; \u201c\/\u201d&amp;Request.ServerVariables(\u201cHTTP_X_REWRITE_URL\u201d) <span style=\"COLOR: #55aa66\">\u2018\u5728\u5934\u4e2d\u6dfb\u52a0Location\u5b57\u6bb5\uff0c\u4f7f\u7528\u5f53\u524d\u7684\u6c42\u60c5\u7684\u8def\u5f84\u52a0\u4e0aCOM\u7684\u57df\u540d\u7ec4\u5408\u6210\u65b0\u7684\u5730\u5740\u3002<br \/><\/span><\/span><\/strong><strong><span style=\"COLOR: #990000\">End If<br \/>%&gt;<\/span><\/strong><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>\u4ee5\u4e0b\u6587\u7ae0\u9ad8\u624b\u5c31\u8bf7\u5ffd\u7565\uff0c\u8fd9\u662f\u4e00\u7bc7\u5173\u4e8e3XX\u72b6\u6001\u7684\u626b\u76f2\u6587\u7ae0\u3002\u5728HTTP\u534f\u8bae\u4e2d\uff0c\u4f7f\u7528\u4e09\u4e2a\u6570\u5b57\u4ee3\u8868HTTP\u534f\u8bae\u72b6\u6001\u3002  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,8],"tags":[],"class_list":["post-602","post","type-post","status-publish","format-standard","hentry","category-1","category-oldblog"],"views":464,"_links":{"self":[{"href":"http:\/\/www.ntxz.net\/index.php?rest_route=\/wp\/v2\/posts\/602","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.ntxz.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.ntxz.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.ntxz.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.ntxz.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=602"}],"version-history":[{"count":1,"href":"http:\/\/www.ntxz.net\/index.php?rest_route=\/wp\/v2\/posts\/602\/revisions"}],"predecessor-version":[{"id":789,"href":"http:\/\/www.ntxz.net\/index.php?rest_route=\/wp\/v2\/posts\/602\/revisions\/789"}],"wp:attachment":[{"href":"http:\/\/www.ntxz.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=602"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.ntxz.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=602"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.ntxz.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=602"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}