{"id":398,"date":"2011-07-14T03:51:25","date_gmt":"2011-07-14T03:51:25","guid":{"rendered":"http:\/\/samwebman.wordpress.com\/?p=398"},"modified":"2011-07-14T03:51:25","modified_gmt":"2011-07-14T03:51:25","slug":"301-redirect-for-seo","status":"publish","type":"post","link":"https:\/\/www.intentrust.com\/?p=398","title":{"rendered":"301 Redirect for SEO"},"content":{"rendered":"<blockquote><p>*\u672c\u6587\u7ae0\u53ea\u9069\u7528\u65bc\u4f7f\u7528\u00a0 Apache (\u591a\u7528\u65bc Linux) \u70ba web server \u7684\u7db2\u7ad9\u3002<\/p>\n<p>\u4ee5\u53cb\u7ad9\u00a0<a href=\"http:\/\/www.clicks.com.tw\/\" target=\"_blank\" rel=\"noopener\">\u95dc\u9375\u5b57\u5ee3\u544a\u57fa\u5730<\/a>\u00a0\u70ba\u4f8b\uff0c\u7576\u9019\u500b\u7db2\u7ad9\u67b6\u8a2d\u597d\u5f8c\uff0c\u6211\u5011\u77e5\u9053\u6211\u5011\u7684\u5b98\u65b9\u7db2\u5740\u662f\uff1a<a href=\"http:\/\/www.clicks.com.tw\/\">http:\/\/www.clicks.com.tw<\/a><\/p>\n<p>\u4f46\u662f\u4e00\u822c\u4f86\u8aaa\uff0c\u6211\u5011\u53ef\u4ee5\u4ee5\u4e0b\u56db\u7a2e\u65b9\u5f0f\u8f38\u5165\u7db2\u5740\u5230\u9054\u9996\u9801\uff1a<\/p>\n<p><a href=\"http:\/\/www.clicks.com.tw\/\">http:\/\/www.clicks.com.tw\/<\/a><br \/>\n<a href=\"http:\/\/www.clicks.com.tw\/index.php\">http:\/\/www.clicks.com.tw\/index.php<\/a>\u00a0\u6216 index.html \u6216 index.htm<br \/>\n<a href=\"http:\/\/clicks.com.tw\/\">http:\/\/clicks.com.tw\/<\/a><br \/>\n<a href=\"http:\/\/clicks.com.tw\/index.php\">http:\/\/clicks.com.tw\/index.php<\/a><\/p>\n<p>\u6211\u5011\u77e5\u9053\u76ee\u524d\u641c\u5c0b\u5f15\u64ce\u57fa\u790e\u4e0a\u4ee5 backlink \u9023\u7d50\u4f86\u8ce6\u4e88\u7db2\u9801\u7684\u6b0a\u91cd\uff0c\u7531\u65bc\u6211\u5011\u7121\u6cd5\u63a7\u5236\u7b2c\u4e09\u65b9\u63a1\u7528\u54ea\u4e00\u500b\u7db2\u5740\u4f86\u8ddf\u6211\u5011\u7684\u7db2\u7ad9\u9032\u884c\u9023\u7d50\uff0c\u56e0\u6b64\u5c31\u53ef\u80fd\u51fa\u73fe \u76f8\u540c\u7db2\u9801\u3001\u4e0d\u540c\u7db2\u5740\u3001\u4e0d\u540c\u6b0a\u91cd\u7684\u60c5\u6cc1\u51fa\u73fe\u3002\u300e \u76f8\u540c\u7db2\u9801\u3001\u4e0d\u540c\u7db2\u5740\u3001\u4e0d\u540c\u6b0a\u91cd\u300f\u9019\u500b\u554f\u984c\uff0c\u5c0d\u700f\u89bd\u8005\u4f86\u8aaa\u53ef\u4ee5\u8aaa\u7121\u50b7\u5927\u96c5\uff0c\u4f46\u662f\u5728\u641c\u5c0b\u5f15\u64ce\u5c31\u6703\u9020\u6210\u6b0a\u91cd\u5206\u6563\u7684\u60c5\u5f62\u3002<\/p>\n<p>\u5c0d\u641c\u5c0b\u5f15\u64ce\u4f86\u8aaa\uff0c\u4e0a\u8ff0\u56db\u500b\u7db2\u5740\u4ee3\u8868\u8457\u56db\u500b\u4e0d\u4e00\u6a23\u7684\u7db2\u9801\u3002<\/p>\n<p>\u800c\u5c0d\u7db2\u7ad9\u700f\u89bd\u8005\u4f86\u8aaa\uff0c\u5c0d\u7db2\u5740\u7684\u5177\u9ad4\u5370\u8c61\u4e5f\u6703\u4e0d\u4e00\u3002<\/p>\n<p>\u7b46\u8005\u5c31\u66fe\u7d93\u6709\u904e http:\/\/www.xxxx.com.tw\/\u00a0 (PR =4) \u8ddf http:\/\/www.xxxx.com.tw\/index.php (PR = 5) \u51fa\u73fe\u4e0d\u540c\u00a0 Page Rank \u7684\u554f\u984c\u3002\u540c\u4e00\u500b\u7db2\u9801\u4e0d\u540c\u7684 PageRank \u4ee3\u8868\u8457\u6d6a\u8cbb\u4e86\u8f9b\u82e6\u7d2f\u7a4d\u7684 backlink\u3002<\/p>\n<p>\u9019\u500b\u60c5\u6cc1\u5728 Linux \u4f3a\u670d\u5668 (\u6e96\u78ba\u9ede\u61c9\u8a72\u662f\u8aaa\u4f7f\u7528 Apache Web Server \u7684\u4f3a\u670d\u5668) \u5c31\u8981\u900f\u904e 301 redirect \u4f86\u89e3\u6c7a\u3002\u6240\u8b02 301 redirect \u7684\u610f\u601d\u662f\u544a\u8a34\u641c\u5c0b\u5f15\u64ce\u9019\u662f\u6c38\u4e45\u6027 (301) \u7684\u8f49\u5740 (redirect)\u3002<\/p>\n<p>\u5728\u653e\u7f6e\u9996\u9801\u00a0 index.php \u6216 index.html \u7684\u76ee\u9304\u4e0b\uff0c\u4e00\u822c\u6709\u4e00\u500b .htaccess \u7684\u96b1\u85cf\u6a94\u6848\u3002\u9019\u500b .htaccess \u5c6c\u65bc\u96b1\u85cf\u6a94\u6848\uff0c\u5728 FTP \u8edf\u9ad4\u4e0a\u4e5f\u8a31\u8981\u8a2d\u5b9a\u53ef\u4ee5\u89c0\u770b\u96b1\u85cf\u6a94\u6848\u624d\u6703\u767c\u73fe\u5b83\u7684\u5b58\u5728\u3002\u770b\u4e0d\u5230\u4e5f\u4e0d\u7528\u9a5a\u8a1d\uff0c\u4e5f\u8a31\u672c\u4f86\u7684\u8a2d\u5b9a\u5c31\u6c92\u6709\u3002<\/p>\n<p>\u5c07 .htaccess \u6a94\u6848\u4e0b\u8f09\u56de\u4f86\uff0c\u7528 notepad \u6216\u8005 Editplus \u9019\u4e9b\u7d14\u6587\u5b57\u7de8\u8f2f\u8edf\u9ad4\u5c31\u53ef\u4ee5\u52a0\u5165\uff0c\u975e\u5e38\u7c21\u55ae\u3002\u8acb\u6ce8\u610f\u5982\u679c\u672c\u8eab .htaccess \u5df2\u7d93\u6709\u5176\u4ed6\u8a2d\u5b9a\uff0c\u9996\u5148\u9700\u8981\u5099\u4efd\u842c\u4e00\u767c\u751f\u554f\u984c\u53ef\u4ee5\u5c07\u5099\u4efd\u6a94\u4e0a\u50b3\uff0c\u518d\u4f86\u5c31\u662f\u5c07\u4ee5\u4e0b\u7684\u6307\u4ee4\u653e\u5230\u6a94\u6848\u6700\u4e0b\u65b9\u5373\u53ef\uff0c\u4e0d\u8981\u522a\u9664\u672c\u4f86\u7684\u8a2d\u5b9a\u3002<\/p>\n<p>Options +FollowSymLinks<br \/>\nRewriteEngine On<br \/>\n# \u4ee5\u4e0b\u662f\u5c07\u6c92\u6709www \u7684\u7db2\u5740\u52a0\u4e0a\u6709 www<br \/>\nRewriteCond %{HTTP_HOST} ^clicks.com.tw$ [NC]<br \/>\nRewriteRule ^(.*)$\u00a0<a href=\"http:\/\/www.clicks.com.tw\/$1\">http:\/\/www.clicks.com.tw\/$1<\/a>\u00a0[R=301,L]<br \/>\n# \u4ee5\u4e0b\u662f\u5c07\u6709 index.php \u7684\u7db2\u5740\u8f49\u6210\u6c92\u6709<br \/>\nrewriteCond %{THE_REQUEST} ^[A-Z]{3,9} \/index.php HTTP\/<br \/>\nrewriteRule ^index.php$\u00a0<a href=\"http:\/\/www.clicks.com.tw\/\">http:\/\/www.clicks.com.tw\/<\/a>\u00a0[R=301,L]<\/p>\n<p>\u8acb\u5c07 clicks.com.tw \u7db2\u5740\u63db\u6210\u60a8\u81ea\u5df1\u7684\u7db2\u5740\u3002<\/p>\n<p>\u65b0\u7684 .htaccess \u6a94\u6848\u4e0a\u50b3\u5f8c\uff0c\u4e0d\u8ad6\u8f38\u5165\u56db\u500b\u7576\u4e2d\u54ea\u4e00\u500b\u7db2\u5740\uff0c\u90fd\u6703\u81ea\u52d5\u8f49\u6210\u5b98\u65b9\u7684<a href=\"http:\/\/www.clicks.com.tw\/\">http:\/\/www.clicks.com.tw\/<\/a>\u00a0\uff0c\u800c\u641c\u5c0b\u5f15\u64ce\u4e5f\u6703\u5c07\u6b0a\u91cd\u5168\u90e8\u96c6\u4e2d\u5728\u9019\u500b\u7db2\u5740\u4e0a\u3002<\/p>\n<p>\u7531\u65bc\u9019\u500b\u60c5\u5f62\u5e7e\u4e4e\u6bcf\u500b\u7db2\u7ad9\u90fd\u6703\u51fa\u73fe\uff0c\u6240\u4ee5\u61c9\u8a72\u51fa\u73fe\u5728\u6bcf\u500b\u7db2\u7ad9\u5b8c\u6210\u7684 check list \u4e0a\uff0c\u8996\u70ba\u6a19\u6e96\u52d5\u4f5c\u3002<\/p>\n<p>\u53c3\u8003\uff1aHow To Redirect index.php to directory<br \/>\nhttp:\/\/www.webmasterworld.com\/apache\/3495904.htm<\/p><\/blockquote>\n<p>Reference from:\u00a0<a href=\"http:\/\/seo.list.tw\/301-redirect\/\">http:\/\/seo.list.tw\/301-redirect\/<\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>*\u672c\u6587\u7ae0\u53ea\u9069\u7528\u65bc\u4f7f\u7528\u00a0 Apache (\u591a\u7528\u65bc Linux) \u70ba web server \u7684\u7db2\u7ad9\u3002 \u4ee5\u53cb\u7ad9\u00a0\u95dc\u9375 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.intentrust.com\/?p=398\" class=\"more-link\">\u95b1\u8b80\u5168\u6587<span class=\"screen-reader-text\">\u3008301 Redirect for SEO\u3009<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[18],"tags":[23],"_links":{"self":[{"href":"https:\/\/www.intentrust.com\/index.php?rest_route=\/wp\/v2\/posts\/398"}],"collection":[{"href":"https:\/\/www.intentrust.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.intentrust.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.intentrust.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.intentrust.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=398"}],"version-history":[{"count":0,"href":"https:\/\/www.intentrust.com\/index.php?rest_route=\/wp\/v2\/posts\/398\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.intentrust.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=398"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.intentrust.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=398"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.intentrust.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=398"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}