{"id":7399,"date":"2013-11-22T05:52:21","date_gmt":"2013-11-21T21:52:21","guid":{"rendered":"http:\/\/www.yptk.cn\/index.php\/2013\/11\/22\/%e5%85%b3%e4%ba%8e-htaccess%e5%92%8c301%e9%87%8d%e5%ae%9a%e5%90%91%e3%80%82\/"},"modified":"2013-11-22T05:52:21","modified_gmt":"2013-11-21T21:52:21","slug":"%e5%85%b3%e4%ba%8e-htaccess%e5%92%8c301%e9%87%8d%e5%ae%9a%e5%90%91%e3%80%82","status":"publish","type":"post","link":"http:\/\/yptk.cn\/index.php\/2013\/11\/22\/%e5%85%b3%e4%ba%8e-htaccess%e5%92%8c301%e9%87%8d%e5%ae%9a%e5%90%91%e3%80%82\/","title":{"rendered":"\u5173\u4e8e.htaccess\u548c301\u91cd\u5b9a\u5411\u3002"},"content":{"rendered":"<p style=\"text-indent:2em;\">\n\t\u6253\u5f00\u7a0b\u5e8f\u5305\uff0c\u4f60\u5e38\u5e38\u4f1a\u53d1\u73b0\u4e86\u4e00\u4e2a\u4e0d\u8ba4\u8bc6\u7684\u6587\u4ef6\u3002.htaccess\u662f\u4ec0\u4e48\u3002\u8fd9\u4e2a\u8fde\u6587\u4ef6\u540d\u90fd\u6ca1\u6709\u7684\u5bb6\u4f19\uff0c\u6269\u5c55\u540d\u8fd8\u8fd9\u4e48\u4e11\u3002\u770b\u4e86\u767e\u5ea6\u767e\u79d1\u90a3\u4e00\u957f\u4e32\u7684\u89e3\u91ca\u6211\u90fd\u5feb\u75af\u4e86\uff0c\u662f\u4f5c\u8005\u4e0d\u61c2\u4e2d\u6587\u4e48\u3002\u4e16\u754c\u672c\u6765\u6ca1\u6709\u8fd9\u4e48\u590d\u6742\uff0c\u4e3a\u4ec0\u4e48\u603b\u6709\u4eba\u5728\u6545\u5f04\u7384\u865a\u3002\n<\/p>\n<p style=\"text-indent:2em;\">\n\t<span style=\"background-color:#337fe5;\">\u56e0\u6b64\u6211\u51b3\u5b9a\u91cd\u65b0\u89e3\u91ca\u4e00\u4e0b<\/span><span style=\"background-color:#337fe5;\">.htaccess<\/span><span style=\"background-color:#337fe5;\">\uff1a<\/span>\n<\/p>\n<p style=\"text-indent:2em;\">\n\t\u4e00\u3001\u5b9a\u4e49\n<\/p>\n<p style=\"text-indent:2em;\">\n\t.htaccess \u662f\u7cfb\u7edf\u7ea7\u522b\u7684\u914d\u7f6e\u6587\u4ef6\u3002\u7ad9\u957f\u53ef\u4ee5\u5728\u6587\u4ef6\u4e2d\u81ea\u5b9a\u4e49\u6307\u4ee4\u3002\u7528\u4e8e\u7ba1\u63a7.htaccess\u6240\u5728\u76ee\u5f55\u548c\u5b50\u76ee\u5f55\u7684\u6587\u4ef6\u3002\u4e00\u822c\u653e\u5728\u7f51\u7ad9\u6839\u76ee\u5f55\u3002\n<\/p>\n<p style=\"text-indent:2em;\">\n\t\u4e8c\u3001.htaccess \u6709\u4ec0\u4e48\u4f5c\u7528\uff1a\n<\/p>\n<blockquote style=\"text-indent:2em;\">\n<p>\n\t\t1\u3001\u662f\u5426\u663e\u793a\u6587\u4ef6\u5217\u8868\u3002\n\t<\/p>\n<p>\n\t\t2\u3001\u5b9a\u4e49\u9519\u8bef\u9875\u9762\u3002400~409\n\t<\/p>\n<\/blockquote>\n<blockquote style=\"text-indent:2em;\">\n<blockquote>\n<p>\n\t\t\t<span style=\"background-color:#CCCCCC;line-height:1;\">400 Auth Req&#8217;d &nbsp;<\/span>\n\t\t<\/p>\n<p>\n\t\t\t<span style=\"background-color:#CCCCCC;line-height:1;\">401 Auth Req&#8217;d &nbsp;<\/span>\n\t\t<\/p>\n<p>\n\t\t\t<span style=\"background-color:#CCCCCC;line-height:1;\">402 Payment Req&#8217;d &nbsp;<\/span>\n\t\t<\/p>\n<p>\n\t\t\t<span style=\"background-color:#CCCCCC;line-height:1;\">403 Forbidden &nbsp;<\/span>\n\t\t<\/p>\n<p>\n\t\t\t<span style=\"background-color:#CCCCCC;line-height:1;\">404 Not Found &nbsp;<\/span>\n\t\t<\/p>\n<p>\n\t\t\t<span style=\"background-color:#CCCCCC;line-height:1;\">405 Method Not Allowed &nbsp;<\/span>\n\t\t<\/p>\n<p>\n\t\t\t<span style=\"background-color:#CCCCCC;line-height:1;\">406 Not Acceptable &nbsp;<\/span>\n\t\t<\/p>\n<p>\n\t\t\t<span style=\"background-color:#CCCCCC;line-height:1;\">407 Proxy Auth Repid &nbsp;<\/span>\n\t\t<\/p>\n<p>\n\t\t\t<span style=\"background-color:#CCCCCC;line-height:1;\">408 Request Time Out &nbsp;<\/span>\n\t\t<\/p>\n<p>\n\t\t\t<span style=\"background-color:#CCCCCC;line-height:1;\">409 Conficting Request<\/span>\n\t\t<\/p>\n<\/blockquote>\n<p>\n\t\t3\u3001\u9884\u8bbeindex\u9875\u9762\u3002\u5373\u6539\u7528\u5176\u4ed6\u6587\u4ef6\u4f5c\u4e3a\u9996\u9875\u3002\n\t<\/p>\n<p>\n\t\t4\u3001\u8bbe\u7f6eWWW\u3002\u628a\u4e0d\u5e26www\u7684\u57df\u540d\u8f6c\u8df3\u5230\u5230www\u7684\u4e0a\u9762\u3002\uff08\u641c\u7d22\u5f15\u64ce\u4f1a\u5929\u771f\u7684\u8ba4\u4e3a\uff0c\u5e26www\u548c\u4e0d\u5e26www\u7684URL\u662f\u4e0d\u540c\u7684\u4e24\u4e2aURL\uff0c\u5373\u4f7f\u5f53\u5b83\u4eec\u6307\u5411\u540c\u4e00\u4e2a\u7f51\u7ad9\u65f6\uff0c\u641c\u7d22\u5f15\u64ce\u4e5f\u4e0d\u61c2\u3002\u8fd9\u6837\u4f1a\u4e3b\u57df\u540d\u7684pr\u503c\u4f1a\u88ab\u4e24\u4e2aURL\u5206\u6563\u3002\uff09\n\t<\/p>\n<p>\n\t\t5\u3001\u8bbe\u7f6e301 Moved Permanently \u6c38\u4e45\u8f6c\u5740\u3002302 Moved Temporarily \u4e34\u65f6\u8f6c\u5740\n\t<\/p>\n<p>\n\t\t6\u3001\u5b58\u53d6\u9650\u5236\u3002\u8bbe\u5b9a\u76ee\u5f55\u4e2d\u6587\u4ef6\u7684\u5b58\u53d6\u6743\u9650\u3002\n\t<\/p>\n<p>\n\t\t7\u3001\u7ed9\u6587\u4ef6\u5939\u52a0\u5bc6\u7801\u3002\u5c31\u662f\u6240\u8c13\u7684 BASIC\u8ba4\u8bc1\n\t<\/p>\n<\/blockquote>\n<p style=\"text-indent:2em;\">\n\t\u4e09\u3001\u5982\u4f55\u521b\u5efa.htaccess\n<\/p>\n<p style=\"text-indent:2em;\">\n\t\u4e0d\u7528\u60f3 windows\u4e0b\u80af\u5b9a\u662f\u521b\u5efa\u4e0d\u4e86\u7684\uff0c\u6269\u5c55\u540d\u4e11\u5c31\u4e0d\u8bf4\u4e86\uff0c\u4e3b\u8981\u662f\u8fd9\u5bb6\u4f19\u6ca1\u6709\u6587\u4ef6\u540d\u3002\n<\/p>\n<p style=\"text-indent:2em;\">\n\t\u4f60\u53ef\u4ee5\u7528\u5199\u5b57\u677f\u5199\u597d\uff0c\u7136\u540e\u53e6\u5b58\u4e3a.htaccess\u3002\n<\/p>\n<p style=\"text-indent:2em;\">\n\t\u6211\u8fd8\u6709\u4e00\u4e2a\u66f4\u7b80\u5355\u7684\u65b9\u6cd5\uff1a\u5728\u7ebf\u5236\u4f5c\uff0c\u50bb\u74dc\u5f0f\u64cd\u4f5c\uff0c\u5b8c\u7f8e\u89e3\u51b3\u4f60\u4e0d\u61c2\u7a0b\u5e8f\u7684\u95ee\u9898\u3002<a href=\"http:\/\/www.htaccesseditor.com\/\">http:\/\/www.htaccesseditor.com\/<\/a>\n<\/p>\n<p style=\"text-indent:2em;\">\n\t&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\n<span style=\"background-color:#337fe5;\">\u4ec0\u4e48\u662f<\/span><span style=\"background-color:#337fe5;\">301\u91cd\u5b9a\u5411<\/span><span style=\"background-color:#337fe5;\">\uff1a<\/span>\u5c31\u662f\u4f60\u8981\u5199\u6bb5\u58f0\u660e\u544a\u8bc9\u641c\u7d22\u5f15\u64ce\uff0c\u4f60\u5927\u54e5\u6362\u57df\u540d\u4e86\u3002\n<\/p>\n<p style=\"text-indent:2em;\">\n\t<br \/>\n\u4e0b\u9762\u662f\u5173\u4e8e\u5982\u4f55\u5b8c\u7f8e\u89e3\u51b3301\u91cd\u5b9a\u5411\u7684\u4e24\u79cd\u65b9\u6cd5\uff0c\u4ece\u6708\u5149\u90a3\u513f\u8f6c\u6765\u7684\u3002<br \/>\n\u6765\u81ea\u4e8eGevin\u7684\u6295\u7a3f\u6587\u7ae0\uff0c\u7565\u6709\u6539\u52a8\uff0c\u539f\u6587\u5728\u8fd9\u91cc\u3002\n<\/p>\n<p style=\"text-indent:2em;\">\n\t\u4ece\u641c\u7d22\u5f15\u64ce\u4f18\u5316\u89d2\u5ea6\u51fa\u53d1\uff0c301\u91cd\u5b9a\u5411\u662f\u7f51\u5740\u91cd\u5b9a\u5411\u6700\u4e3a\u53ef\u884c\u7684\u4e00\u79cd\u529e\u6cd5\u3002\u5f53\u7f51\u7ad9\u7684\u57df\u540d\u53d1\u751f\u53d8\u66f4\u540e\uff0c\u641c\u7d22\u5f15\u64ce\u53ea\u5bf9\u65b0\u7f51\u5740\u8fdb\u884c\u7d22\u5f15\uff0c\u540c\u65f6\u53c8\u4f1a\u628a\u65e7\u5730\u5740\u4e0b\u539f\u6709\u7684\u5916\u90e8\u94fe\u63a5\u5982\u6570\u8f6c\u79fb\u5230\u65b0\u5730\u5740\u4e0b\uff0c\u4ece\u800c\u4e0d\u4f1a\u8ba9\u7f51\u7ad9\u7684\u6392\u540d\u56e0\u4e3a\u7f51\u5740\u53d8\u66f4\u800c\u6536\u5230\u4e1d\u6beb\u5f71\u54cd\u3002\u540c\u6837\uff0c\u5728\u4f7f\u7528301\u6c38\u4e45\u6027\u91cd\u5b9a\u5411\u547d\u4ee4\u8ba9\u591a\u4e2a\u57df\u540d\u6307\u5411\u7f51\u7ad9\u4e3b\u57df\u65f6\uff0c\u4ea6\u4e0d\u4f1a\u5bf9\u7f51\u7ad9\u7684\u6392\u540d\u4ea7\u751f\u4efb\u4f55\u8d1f\u9762\u5f71\u54cd\u3002\u672c\u6587\u4ecb\u7ecd\u4e24\u4e2a\u8f83\u4e3a\u7b80\u5355\u7684\u5b8c\u7f8e\u89e3\u51b3301\u91cd\u5b9a\u5411\u7684\u65b9\u6cd5\u3002\n<\/p>\n<p style=\"text-indent:2em;\">\n\t\u65b9\u6cd51\uff1a\u4fee\u6539.htaccess\u6587\u4ef6\n<\/p>\n<p style=\"text-indent:2em;\">\n\t\u4ee3\u7801\u5982\u4e0b\uff1a\n<\/p>\n<blockquote style=\"text-indent:2em;\">\n<p>\n\t\t<span style=\"background-color:#cccccc;\">&lt;ifmodule mod_rewrite.c&gt;<\/span>\n\t<\/p>\n<p>\n\t\t<span style=\"background-color:#cccccc;\">RewriteEngine On<\/span>\n\t<\/p>\n<p>\n\t\t<span style=\"background-color:#cccccc;\">RewriteCond %{HTTP_HOST} blog.iflyhigher.tk$ [NC]<\/span>\n\t<\/p>\n<p>\n\t\t<span style=\"background-color:#cccccc;\">RewriteRule ^(.*)$ http:\/\/blog.igevin.info\/$1 [R=301,L]<\/span>\n\t<\/p>\n<p>\n\t\t<span style=\"background-color:#cccccc;\">RewriteCond %{HTTP_HOST} iflyhigher.tk$ [NC]<\/span>\n\t<\/p>\n<p>\n\t\t<span style=\"background-color:#cccccc;\">RewriteRule ^(.*)$ http:\/\/igevin.info\/$1 [R=301,L]<\/span>\n\t<\/p>\n<p>\n\t\t<span style=\"background-color:#cccccc;\">RewriteCond %{HTTP_HOST} moiya.tk$ [NC]<\/span>\n\t<\/p>\n<p>\n\t\t<span style=\"background-color:#cccccc;\">RewriteRule ^(.*)$ http:\/\/igevin.info\/$1 [R=301,L]<\/span>\n\t<\/p>\n<p>\n\t\t<span style=\"background-color:#cccccc;\">&lt;\/ifmodule&gt;<\/span>\n\t<\/p>\n<\/blockquote>\n<p style=\"text-indent:2em;\">\n\t\u672c\u535a\u9700\u8981\u5bf9\u4e09\u4e2a\u57df\u540d\u8fdb\u884c\u91cd\u5b9a\u5411\uff0c\u6240\u4ee5\u5199\u7684\u6bd4\u8f83\u591a\uff0c\u5173\u952e\u4ee3\u7801\u5c31\u662f2\u53e5\u8bdd\n<\/p>\n<blockquote style=\"text-indent:2em;\">\n<p>\n\t\t<span style=\"background-color:#cccccc;\">RewriteCond %{HTTP_HOST} blog.iflyhigher.tk$ [NC]<\/span>\n\t<\/p>\n<p>\n\t\t<span style=\"background-color:#cccccc;\">RewriteRule ^(.*)$ http:\/\/blog.igevin.info\/$1 [R=301,L]<\/span>\n\t<\/p>\n<\/blockquote>\n<p style=\"text-indent:2em;\">\n\t\u7b2c\u4e00\u884c\u7684\u57df\u540d\u662f\u9700\u8981\u88ab\u91cd\u5b9a\u5411\u7684\u65e7\u57df\u540d\uff0c\u7b2c\u4e8c\u884c\u7684\u662f\u73b0\u5728\u7f51\u7ad9\u7684\u57df\u540d\u3002\n<\/p>\n<p style=\"text-indent:2em;\">\n\t<br \/>\n\u65b9\u6cd52\uff1a\u4f7f\u7528PHP\u7684\u91cd\u5b9a\u5411\u4ee3\u7801\n<\/p>\n<p style=\"text-indent:2em;\">\n\t\u65b0\u5efa\u4e00\u4e2aindex.php\u6587\u4ef6\uff0c\u7136\u540e\u53c2\u8003\u4e0b\u9762\u4ee3\u7801\u6309\u81ea\u5df1\u7684\u91cd\u5b9a\u5411\u8981\u6c42\u505a\u7b80\u5355\u4fee\u6539\uff1a\n<\/p>\n<blockquote style=\"text-indent:2em;\">\n<p>\n\t\t<span style=\"background-color:#cccccc;\">&lt; ?php<\/span>\n\t<\/p>\n<p>\n\t\t<span style=\"background-color:#cccccc;\">$the_host = $_SERVER[&#8216;HTTP_HOST&#8217;];<\/span>\n\t<\/p>\n<p>\n\t\t<span style=\"background-color:#cccccc;\">$request_uri = isset($_SERVER[&#8216;REQUEST_URI&#8217;]) ? $_SERVER[&#8216;REQUEST_URI&#8217;] : &#8221;;<\/span>\n\t<\/p>\n<p>\n\t\t<span style=\"background-color:#cccccc;\">switch ($the_host)<\/span>\n\t<\/p>\n<p>\n\t\t<span style=\"background-color:#cccccc;\">{<\/span>\n\t<\/p>\n<p>\n\t\t<span style=\"background-color:#cccccc;\">&nbsp; &nbsp;case &#8220;www.iflyhigher.tk&#8221;:<\/span>\n\t<\/p>\n<p>\n\t\t<span style=\"background-color:#cccccc;\">&nbsp; &nbsp;case &#8220;iflyhigher.tk&#8221;:<\/span>\n\t<\/p>\n<p>\n\t\t<span style=\"background-color:#cccccc;\">&nbsp; &nbsp; &nbsp; &nbsp;$location = &#8220;Location: http:\/\/igevin.info&#8221; . $request_uri;<\/span>\n\t<\/p>\n<p>\n\t\t<span style=\"background-color:#cccccc;\">&nbsp; &nbsp; &nbsp; &nbsp;break;<\/span>\n\t<\/p>\n<p>\n\t\t<span style=\"background-color:#cccccc;\">&nbsp; &nbsp;case &#8220;blog.iflyhigher.tk&#8221;:<\/span>\n\t<\/p>\n<p>\n\t\t<span style=\"background-color:#cccccc;\">&nbsp; &nbsp; &nbsp; &nbsp;$location = &#8220;Location: http:\/\/blog.igevin.info&#8221; . $request_uri;<\/span>\n\t<\/p>\n<p>\n\t\t<span style=\"background-color:#cccccc;\">&nbsp; &nbsp; &nbsp; &nbsp;break;<\/span>\n\t<\/p>\n<p>\n\t\t<span style=\"background-color:#cccccc;\">&nbsp; &nbsp;case &#8220;www.moiya.tk&#8221;:<\/span>\n\t<\/p>\n<p>\n\t\t<span style=\"background-color:#cccccc;\">&nbsp; &nbsp;case &#8220;moiya.tk&#8221;:<\/span>\n\t<\/p>\n<p>\n\t\t<span style=\"background-color:#cccccc;\">&nbsp; &nbsp; &nbsp; &nbsp;$location = &#8220;Location: http:\/\/igevin.info&#8221;;<\/span>\n\t<\/p>\n<p>\n\t\t<span style=\"background-color:#cccccc;\">&nbsp; &nbsp; &nbsp; &nbsp;break;<\/span>\n\t<\/p>\n<p>\n\t\t<span style=\"background-color:#cccccc;\">&nbsp; &nbsp;default:<\/span>\n\t<\/p>\n<p>\n\t\t<span style=\"background-color:#cccccc;\">&nbsp; &nbsp; &nbsp; &nbsp;$location = &#8220;Location: http:\/\/igevin.info&#8221;;<\/span>\n\t<\/p>\n<p>\n\t\t<span style=\"background-color:#cccccc;\">&nbsp; &nbsp; &nbsp; &nbsp;break;<\/span>\n\t<\/p>\n<p>\n\t\t<span style=\"background-color:#cccccc;\">}<\/span>\n\t<\/p>\n<p>\n\t\t<span style=\"background-color:#cccccc;\">header(&#8216;HTTP\/1.1 301 Moved Permanently&#8217;);<\/span>\n\t<\/p>\n<p>\n\t\t<span style=\"background-color:#cccccc;\">header($location);<\/span>\n\t<\/p>\n<p>\n\t\t<span style=\"background-color:#cccccc;\">exit();<\/span>\n\t<\/p>\n<p>\n\t\t<span style=\"background-color:#cccccc;\">?&gt;<\/span>\n\t<\/p>\n<\/blockquote>\n<p style=\"text-indent:2em;\">\n\t\u5982\u679c\u53ea\u8981\u5bf9\u4e00\u4e2a\u57df\u540d\u8fdb\u884c\u91cd\u5b9a\u5411\uff0c\u53ef\u4ee5\u628a\u4ee3\u7801\u7b80\u5316\u6210\u4e0b\u9762\u7684\u5f62\u5f0f\uff1a\n<\/p>\n<blockquote style=\"text-indent:2em;\">\n<p>\n\t\t<span style=\"background-color:#cccccc;\">&lt; ?php<\/span>\n\t<\/p>\n<p>\n\t\t<span style=\"background-color:#cccccc;\">$the_host = $_SERVER[&#8216;HTTP_HOST&#8217;];\/\/\u53d6\u5f97\u8fdb\u5165\u6240\u8f93\u5165\u7684\u57df\u540d<\/span>\n\t<\/p>\n<p>\n\t\t<span style=\"background-color:#cccccc;\">$request_uri = isset($_SERVER[&#8216;REQUEST_URI&#8217;]) ? $_SERVER[&#8216;REQUEST_URI&#8217;] : &#8221;;\/\/\u5224\u65ad\u540e\u9762\u7684\u8bf7\u6c42\u90e8\u5206<\/span>\n\t<\/p>\n<p>\n\t\t<span style=\"background-color:#cccccc;\">if($the_host !== &#8216;igevin.info&#8217;)\/\/igevin.info\u662f\u6211\u73b0\u5728\u7684\u57df\u540d<\/span>\n\t<\/p>\n<p>\n\t\t<span style=\"background-color:#cccccc;\">{<\/span>\n\t<\/p>\n<p>\n\t\t<span style=\"background-color:#cccccc;\">&nbsp; &nbsp;header(&#8216;HTTP\/1.1 301 Moved Permanently&#8217;);\/\/\u53d1\u51fa301\u5934\u90e8<\/span>\n\t<\/p>\n<p>\n\t\t<span style=\"background-color:#cccccc;\">&nbsp; &nbsp;header(&#8216;Location: http:\/\/igevin.info&#8217;.$request_uri);\/\/\u8df3\u8f6c\u5230\u6211\u7684\u65b0\u57df\u540d\u5730\u5740<\/span>\n\t<\/p>\n<p>\n\t\t<span style=\"background-color:#cccccc;\">&nbsp; &nbsp;exit();<\/span>\n\t<\/p>\n<p>\n\t\t<span style=\"background-color:#cccccc;\">}<\/span>\n\t<\/p>\n<p>\n\t\t<span style=\"background-color:#cccccc;\">?&gt;<\/span>\n\t<\/p>\n<\/blockquote>\n<p style=\"text-indent:2em;\">\n\t\u6ce8\u610f\uff0c\u6700\u540e\u7684exit()\u51fd\u6570\u662f\u4e00\u5b9a\u8981\u5199\u7684\uff0c\u6211\u6700\u521d\u5c31\u6ca1\u6709\u5199\uff0c\u7ed3\u679c\u53ea\u80fd\u91cd\u5b9a\u5411\u9996\u9875.\n<\/p>\n<p style=\"text-indent:2em;\">\n\t\u5173\u4e8e\u91cd\u5b9a\u5411\u7684\u4e00\u4e9b\u7ec6\u8282<br \/>\n\u7531\u4e8e\u8981\u5bf9\u4e09\u4e2a\u57df\u540d\u8fdb\u884c\u91cd\u5b9a\u5411\uff0c\u91cd\u5b9a\u5411\u524d\uff0c\u6211\u9996\u5148\u5c06\u8fd9\u4e09\u4e2a\u57df\u540d\u4f5c\u4e3aAddon Domain\u7ed1\u5b9a\u5230\u6211\u7684\u670d\u52a1\u5668\u4e0a\u53bb\uff0c\u5e76\u8ba9\u8fd9\u4e09\u4e2a\u57df\u540d\u6307\u5411\u540c\u4e00\u4e2a\u6587\u4ef6\u5939\uff0c\u8fd9\u6837\uff0c\u53ea\u8981\u4fee\u6539\u8fd9\u4e00\u4e2a\u6587\u4ef6\u5939\u4e2d\u7684.htaccess\u6587\u4ef6\u6216\u8005index.php\u6587\u4ef6\u5c31\u53ef\u4ee5\u4e86\u3002\u5982\u679c\u6ca1\u6709.htaccess\u6587\u4ef6\u6216\u8005index.php\u6587\u4ef6\uff0c\u65b0\u5efa\u4e00\u4e2a\u5373\u53ef\u3002<br \/>\n\u5e0c\u671b\u672c\u6587\u5bf9\u9700\u8981\u8fdb\u884c301\u91cd\u5b9a\u5411\u7684\u670b\u53cb\u6709\u5e2e\u52a9\u3002\n<\/p>\n<p style=\"text-indent:2em;\">\n\t\u5173\u4e8e.htaccess\u548c301\u91cd\u5b9a\u5411\u7684\u4f5c\u7528\u548c\u65b9\u6cd5\u4e0d\u53ea\u8fd9\u4e9b\u3002\u4f7f\u7528\u4e2d\u4f60\u4e00\u5b9a\u4f1a\u6709\u66f4\u591a\u53d1\u73b0\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6253\u5f00\u7a0b\u5e8f\u5305\uff0c\u4f60\u5e38\u5e38\u4f1a\u53d1\u73b0\u4e86\u4e00\u4e2a\u4e0d\u8ba4\u8bc6\u7684\u6587\u4ef6\u3002.htaccess\u662f\u4ec0\u4e48\u3002\u8fd9\u4e2a\u8fde\u6587\u4ef6\u540d\u90fd\u6ca1\u6709\u7684\u5bb6\u4f19\uff0c\u6269\u5c55\u540d\u8fd8\u8fd9\u4e48\u4e11\u3002\u770b\u4e86\u767e\u5ea6\u767e\u79d1\u90a3\u4e00\u957f\u4e32\u7684\u89e3\u91ca\u6211\u90fd\u5feb\u75af\u4e86\uff0c\u662f\u4f5c\u8005\u4e0d\u61c2\u4e2d\u6587\u4e48\u3002\u4e16\u754c\u672c\u6765\u6ca1\u6709\u8fd9\u4e48\u590d\u6742\uff0c\u4e3a\u4ec0\u4e48\u603b\u6709\u4eba\u5728\u6545\u5f04\u7384\u865a\u3002 \u56e0\u6b64\u6211\u51b3\u5b9a\u91cd\u65b0\u89e3\u91ca\u4e00\u4e0b.htaccess\uff1a \u4e00\u3001\u5b9a\u4e49 .htaccess \u662f\u7cfb\u7edf\u7ea7\u522b\u7684\u914d\u7f6e\u6587\u4ef6\u3002\u7ad9\u957f\u53ef\u4ee5\u5728\u6587\u4ef6\u4e2d\u81ea\u5b9a\u4e49\u6307\u4ee4\u3002\u7528\u4e8e\u7ba1\u63a7.htaccess\u6240\u5728\u76ee\u5f55\u548c\u5b50\u76ee\u5f55\u7684\u6587\u4ef6\u3002\u4e00\u822c\u653e\u5728\u7f51 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"categories":[15],"tags":[],"class_list":["post-7399","post","type-post","status-publish","format-standard","hentry","category-15"],"_links":{"self":[{"href":"http:\/\/yptk.cn\/index.php\/wp-json\/wp\/v2\/posts\/7399","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/yptk.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/yptk.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/yptk.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/yptk.cn\/index.php\/wp-json\/wp\/v2\/comments?post=7399"}],"version-history":[{"count":0,"href":"http:\/\/yptk.cn\/index.php\/wp-json\/wp\/v2\/posts\/7399\/revisions"}],"wp:attachment":[{"href":"http:\/\/yptk.cn\/index.php\/wp-json\/wp\/v2\/media?parent=7399"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/yptk.cn\/index.php\/wp-json\/wp\/v2\/categories?post=7399"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/yptk.cn\/index.php\/wp-json\/wp\/v2\/tags?post=7399"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}