{"id":2368,"date":"2011-08-02T15:21:02","date_gmt":"2011-08-02T07:21:02","guid":{"rendered":"https:\/\/www.awoo.com.tw\/blog\/?p=2368"},"modified":"2023-12-28T18:26:28","modified_gmt":"2023-12-28T10:26:28","slug":"htaccess-301-redirect","status":"publish","type":"post","link":"https:\/\/www.awoo.ai\/zh-hant\/blog\/htaccess-301-redirect\/","title":{"rendered":"[SEO \u6280\u8853\u5206\u4eab] htaccess 301 Redirect \u6559\u5b78"},"content":{"rendered":"<p>\u5148\u524d\u6211\u5011\u5728\u975c\u614b\u7db2\u9801\u5982\u4f55\u6b63\u78ba\u8a2d\u5b9a301\u8f49\u5740\u63d0\u904e\u5404\u7a2e301\u6c38\u4e45\u8f49\u5740\u8a9e\u6cd5\uff0c\u9019\u6b21\u8981\u6559\u5927\u5bb6\u4f7f\u7528.htaccess\u4f86\u9032\u884c301 Redirect\u3002<br \/>\n<strong> \u5982\u4f55\u5efa\u7acb.htaccess\uff1f<\/strong><br \/>\n\u9996\u5148\u60a8\u7684server\u5fc5\u9808\u662fapache\u7cfb\u7d71\uff0c\u901a\u5e38\u60a8\u4f7f\u7528<a href=\"http:\/\/zh.wikipedia.org\/wiki\/Php\">PHP<\/a>\u7a7a\u9593\u7684\u8a71\uff0c\u90a3\u5c31\u662f\u4f7f\u7528<a href=\"http:\/\/zh.wikipedia.org\/wiki\/Apache\">apache<\/a>\u3002\u5728\u7db2\u9801\u7684\u6839\u76ee\u9304\u4e0b\uff0c\u901a\u5e38\u53ef\u4ee5\u627e\u5230\u4e00\u500b.htaccess\u7684\u6a94\u6848\uff0c\u82e5\u6c92\u6709\u5247\u9700\u81ea\u5df2\u5efa\u7acb\u4e00\u500b\u3002\u7531\u65bc\u5728Windows\u4e2d\u7121\u6cd5\u5efa\u7acb\u4ee5\u9ede\u70ba\u958b\u982d\u7684\u6a94\u6848\uff0c\u6545\u6211\u5011\u5148\u5efa\u7acb\u4e00\u500bhtaccess.txt\u6a94\uff0c\u4e0a\u50b3\u81f3FTP\u5f8c\u518d\u4fee\u6539\u6a94\u540d\u70ba.htaccess\u5373\u53ef\u3002(\u82e5\u4e0a\u50b3\u81f3FTP\u5f8c\u627e\u4e0d\u5230\u6a94\u6848\uff0c\u9808\u5728FTP\u8edf\u9ad4\u8a2d\u5b9a\u5f37\u5236\u986f\u793a\u96b1\u85cf\u6a94\u6848)<br \/>\n<img decoding=\"async\" class=\"wp-image-5880 alignleft\" src=\"https:\/\/www.awoo.com.tw\/blog\/wp-content\/uploads\/2011\/08\/htaccess-ftp.jpg\" alt=\"\" width=\"455\" height=\"345\" \/><br \/>\n<!--more--><br \/>\n<strong> htaccess 301\u8f49\u5740\u8a9e\u6cd5\u57fa\u790e\u4ecb\u7d39<\/strong><br \/>\n\u5728\u7db2\u7ad9\u6839\u76ee\u9304\u5efa\u7acb\u597d.htaccess\u5f8c\uff0c\u63a5\u8457\u7528\u4efb\u4f55notepad\u8edf\u9ad4\u958b\u555f\u5c31\u53ef\u4ee5\u76f4\u63a5\u5beb\u5165\u8a9e\u6cd5\u3002<br \/>\n\u4ee5\u4e0b\u70ba301 redirect\u7684\u5404\u7a2e\u904b\u7528\u65b9\u5f0f\uff1a<br \/>\n# \u9032\u5165\u5230\u60a8\u7684\u7db2\u57df\u5f8c\u5373301 redirect\u5230\u5176\u5b83\u7db2\u57df<br \/>\nRedirect 301 \/ http:\/\/example.com\/<br \/>\n# \u9032\u5165\u5230old.html\u5f8c\u5373301 redirect\u5230\u5176\u5b83\u7db2\u57df\u7684\u5b50\u76ee\u9304\u4e0b<br \/>\nRedirect \/old.html http:\/\/example.com\/newdirectory\/<br \/>\n# \u9032\u5165\u820a\u7684\u7db2\u5740\u5373301 redirect\u81f3\u65b0\u7684\u7db2\u5740<br \/>\nRedirect \/olddirectory\/oldfile.html http:\/\/example.com\/newdirectory\/newfile.html<br \/>\n<strong>htaccess 301 \u8f49\u5740\u7684\u9032\u968eSEO\u7528\u6cd5<\/strong><br \/>\n\u4e00\u822c\u7db2\u7ad9\u90fd\u6703\u6709\u7db2\u5740\u4e0d\u4e00\u81f4\u7684\u60c5\u6033\uff0c\u4ec0\u9ebc\u662f\u7db2\u5740\u4e0d\u4e00\u81f4\uff1f\u5373\u8f38\u5165www.domain.com\u6216www.domain.com\/index.php\u6216\u662f\u8f38\u5165\u6c92\u6709www\u7684\u7db2\u5740\u90fd\u53ef\u9032\u5230\u9996\u9801\uff0c\u4e00\u822c\u4eba\u53ef\u80fd\u611f\u89ba\u4e0d\u51fa\u6709\u5f71\u97ff\uff0c\u4f46\u5c0d\u641c\u5c0b\u5f15\u64ce\u4f86\u8aaa\u53ea\u8981\u7db2\u5740\u4e0d\u540c\u5c31\u662f\u4e0d\u540c\u9801\u9762\uff0c\u56e0\u6b64\u6211\u5011\u770b\u4f3c\u5dee\u4e0d\u591a\u7684\u7db2\u5740\uff0c\u5176\u5be6\u641c\u5c0b\u5f15\u64ce\u4e26\u4e0d\u9019\u9ebc\u8a8d\u70ba\u3002<br \/>\n\u6240\u4ee5\u6211\u5011\u8981\u6559\u5927\u5bb6\u5982\u4f55\u7dad\u6301\u7db2\u5740\u7684\u4e00\u81f4\u6027\uff0c\u8b93\u5f9eindex.php\u9032\u4f86\u7684\u6216\u662f\u5f9e\u6c92\u6709www\u9032\u4f86\u7684\u7d71\u4e00\u90fd\u7528301\u6c38\u4e45\u8f49\u5740\u7684\u65b9\u5f0f\u8f49\u5230www.domain.com<br \/>\n# \u4ee5\u4e0b\u5169\u884c\u4e0d\u53ef\u7701\u7565<br \/>\nOptions +FollowSymLinks<br \/>\nRewriteEngine on<br \/>\n# \u5c07index.php \u8f49\u5230 \/<br \/>\nRewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\\ \/.*index\\.php\\ HTTP\/<br \/>\nRewriteRule ^(.*)index\\.php$ \/$1 [R=301,L]<br \/>\n# \u5c07\u6c92\u6709www \u8f49\u5230\u6709 www<br \/>\nRewriteCond %{HTTP_HOST} ^domain.com [NC]<br \/>\nRewriteRule ^(.*)$ http:\/\/www.domain.com\/$1 [L,R=301]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5148\u524d\u6211\u5011\u5728\u975c\u614b\u7db2\u9801\u5982\u4f55\u6b63\u78ba\u8a2d\u5b9a301\u8f49\u5740\u63d0\u904e\u5404\u7a2e301\u6c38\u4e45\u8f49\u5740\u8a9e\u6cd5\uff0c\u9019\u6b21\u8981\u6559\u5927\u5bb6\u4f7f\u7528.htaccess\u4f86\u9032\u884c301 Redirect\u3002<\/p>\n","protected":false},"author":42,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[29,436],"tags":[68],"class_list":["post-2368","post","type-post","status-publish","format-standard","hentry","category-seo-guide","category-seo-advanced","tag-seo-case"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>[SEO \u6280\u8853\u5206\u4eab] htaccess 301 Redirect \u6559\u5b78 - awoo<\/title>\n<meta name=\"description\" content=\"\u5148\u524d\u6211\u5011\u5728\u975c\u614b\u7db2\u9801\u5982\u4f55\u6b63\u78ba\u8a2d\u5b9a301\u8f49\u5740\u63d0\u904e\u5404\u7a2e301\u6c38\u4e45\u8f49\u5740\u8a9e\u6cd5\uff0c\u9019\u6b21\u8981\u6559\u5927\u5bb6\u4f7f\u7528.htaccess\u4f86\u9032\u884c301 Redirect\u3002 \u5982\u4f55\u5efa\u7acb.htaccess\uff1f \u9996\u5148\u60a8\u7684server\u5fc5\u9808\u662fapache\u7cfb\u7d71\uff0c\u901a\u5e38\u60a8\u4f7f\u7528PHP\u7a7a\u9593\u7684\u8a71\uff0c\u90a3\u5c31\u662f\u4f7f\u7528apache\u3002\u5728\u7db2\u9801\u7684\u6839\u76ee\u9304\u4e0b\uff0c\u901a\u5e38\u53ef\u4ee5\u627e\u5230\u4e00\u500b.htaccess\u7684\u6a94\u6848\uff0c\u82e5\u6c92\u6709\u5247\u9700\u81ea\u5df2\u5efa\u7acb\u4e00\u500b\u3002\u7531\u65bc\u5728Windows\u4e2d\u7121\u6cd5\u5efa\u7acb\u4ee5\u9ede\u70ba\u958b\u982d\u7684\u6a94\u6848\uff0c\u6545\u6211\u5011\u5148\u5efa\u7acb\u4e00\u500bhtaccess.txt\u6a94\uff0c\u4e0a\u50b3\u81f3FTP\u5f8c\u518d\u4fee\u6539\u6a94\u540d\u70ba.htaccess\u5373\u53ef\u3002(\u82e5\u4e0a\u50b3\u81f3FTP\u5f8c\u627e\u4e0d\u5230\u6a94\u6848\uff0c\u9808\u5728FTP\u8edf\u9ad4\u8a2d\u5b9a\u5f37\u5236\u986f\u793a\u96b1\u85cf\u6a94\u6848)\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.awoo.ai\/zh-hant\/blog\/htaccess-301-redirect\/\" \/>\n<meta property=\"og:locale\" content=\"zh_TW\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[SEO \u6280\u8853\u5206\u4eab] htaccess 301 Redirect \u6559\u5b78 - awoo\" \/>\n<meta property=\"og:description\" content=\"\u5148\u524d\u6211\u5011\u5728\u975c\u614b\u7db2\u9801\u5982\u4f55\u6b63\u78ba\u8a2d\u5b9a301\u8f49\u5740\u63d0\u904e\u5404\u7a2e301\u6c38\u4e45\u8f49\u5740\u8a9e\u6cd5\uff0c\u9019\u6b21\u8981\u6559\u5927\u5bb6\u4f7f\u7528.htaccess\u4f86\u9032\u884c301 Redirect\u3002 \u5982\u4f55\u5efa\u7acb.htaccess\uff1f \u9996\u5148\u60a8\u7684server\u5fc5\u9808\u662fapache\u7cfb\u7d71\uff0c\u901a\u5e38\u60a8\u4f7f\u7528PHP\u7a7a\u9593\u7684\u8a71\uff0c\u90a3\u5c31\u662f\u4f7f\u7528apache\u3002\u5728\u7db2\u9801\u7684\u6839\u76ee\u9304\u4e0b\uff0c\u901a\u5e38\u53ef\u4ee5\u627e\u5230\u4e00\u500b.htaccess\u7684\u6a94\u6848\uff0c\u82e5\u6c92\u6709\u5247\u9700\u81ea\u5df2\u5efa\u7acb\u4e00\u500b\u3002\u7531\u65bc\u5728Windows\u4e2d\u7121\u6cd5\u5efa\u7acb\u4ee5\u9ede\u70ba\u958b\u982d\u7684\u6a94\u6848\uff0c\u6545\u6211\u5011\u5148\u5efa\u7acb\u4e00\u500bhtaccess.txt\u6a94\uff0c\u4e0a\u50b3\u81f3FTP\u5f8c\u518d\u4fee\u6539\u6a94\u540d\u70ba.htaccess\u5373\u53ef\u3002(\u82e5\u4e0a\u50b3\u81f3FTP\u5f8c\u627e\u4e0d\u5230\u6a94\u6848\uff0c\u9808\u5728FTP\u8edf\u9ad4\u8a2d\u5b9a\u5f37\u5236\u986f\u793a\u96b1\u85cf\u6a94\u6848)\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.awoo.ai\/zh-hant\/blog\/htaccess-301-redirect\/\" \/>\n<meta property=\"og:site_name\" content=\"awoo\" \/>\n<meta property=\"article:published_time\" content=\"2011-08-02T07:21:02+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-28T10:26:28+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.awoo.com.tw\/blog\/wp-content\/uploads\/2011\/08\/htaccess-ftp.jpg\" \/>\n<meta name=\"author\" content=\"awoo Intelligence\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005:\" \/>\n\t<meta name=\"twitter:data1\" content=\"awoo Intelligence\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.awoo.ai\/zh-hant\/blog\/htaccess-301-redirect\/\",\"url\":\"https:\/\/www.awoo.ai\/zh-hant\/blog\/htaccess-301-redirect\/\",\"name\":\"[SEO \u6280\u8853\u5206\u4eab] htaccess 301 Redirect \u6559\u5b78 - awoo\",\"isPartOf\":{\"@id\":\"https:\/\/www.awoo.ai\/zh-hant\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.awoo.ai\/zh-hant\/blog\/htaccess-301-redirect\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.awoo.ai\/zh-hant\/blog\/htaccess-301-redirect\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.awoo.com.tw\/blog\/wp-content\/uploads\/2011\/08\/htaccess-ftp.jpg\",\"datePublished\":\"2011-08-02T07:21:02+00:00\",\"dateModified\":\"2023-12-28T10:26:28+00:00\",\"author\":{\"@id\":\"https:\/\/www.awoo.ai\/zh-hant\/#\/schema\/person\/48b9f04da77072e393b6cafe771f6944\"},\"description\":\"\u5148\u524d\u6211\u5011\u5728\u975c\u614b\u7db2\u9801\u5982\u4f55\u6b63\u78ba\u8a2d\u5b9a301\u8f49\u5740\u63d0\u904e\u5404\u7a2e301\u6c38\u4e45\u8f49\u5740\u8a9e\u6cd5\uff0c\u9019\u6b21\u8981\u6559\u5927\u5bb6\u4f7f\u7528.htaccess\u4f86\u9032\u884c301 Redirect\u3002 \u5982\u4f55\u5efa\u7acb.htaccess\uff1f \u9996\u5148\u60a8\u7684server\u5fc5\u9808\u662fapache\u7cfb\u7d71\uff0c\u901a\u5e38\u60a8\u4f7f\u7528PHP\u7a7a\u9593\u7684\u8a71\uff0c\u90a3\u5c31\u662f\u4f7f\u7528apache\u3002\u5728\u7db2\u9801\u7684\u6839\u76ee\u9304\u4e0b\uff0c\u901a\u5e38\u53ef\u4ee5\u627e\u5230\u4e00\u500b.htaccess\u7684\u6a94\u6848\uff0c\u82e5\u6c92\u6709\u5247\u9700\u81ea\u5df2\u5efa\u7acb\u4e00\u500b\u3002\u7531\u65bc\u5728Windows\u4e2d\u7121\u6cd5\u5efa\u7acb\u4ee5\u9ede\u70ba\u958b\u982d\u7684\u6a94\u6848\uff0c\u6545\u6211\u5011\u5148\u5efa\u7acb\u4e00\u500bhtaccess.txt\u6a94\uff0c\u4e0a\u50b3\u81f3FTP\u5f8c\u518d\u4fee\u6539\u6a94\u540d\u70ba.htaccess\u5373\u53ef\u3002(\u82e5\u4e0a\u50b3\u81f3FTP\u5f8c\u627e\u4e0d\u5230\u6a94\u6848\uff0c\u9808\u5728FTP\u8edf\u9ad4\u8a2d\u5b9a\u5f37\u5236\u986f\u793a\u96b1\u85cf\u6a94\u6848)\",\"breadcrumb\":{\"@id\":\"https:\/\/www.awoo.ai\/zh-hant\/blog\/htaccess-301-redirect\/#breadcrumb\"},\"inLanguage\":\"zh-TW\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.awoo.ai\/zh-hant\/blog\/htaccess-301-redirect\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-TW\",\"@id\":\"https:\/\/www.awoo.ai\/zh-hant\/blog\/htaccess-301-redirect\/#primaryimage\",\"url\":\"https:\/\/www.awoo.com.tw\/blog\/wp-content\/uploads\/2011\/08\/htaccess-ftp.jpg\",\"contentUrl\":\"https:\/\/www.awoo.com.tw\/blog\/wp-content\/uploads\/2011\/08\/htaccess-ftp.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.awoo.ai\/zh-hant\/blog\/htaccess-301-redirect\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9801\",\"item\":\"https:\/\/www.awoo.ai\/zh-hant\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[SEO \u6280\u8853\u5206\u4eab] htaccess 301 Redirect \u6559\u5b78\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.awoo.ai\/zh-hant\/#website\",\"url\":\"https:\/\/www.awoo.ai\/zh-hant\/\",\"name\":\"awoo\",\"description\":\"\u53f0\u7063 AI MarTech \u9818\u5c0e\u54c1\u724c\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.awoo.ai\/zh-hant\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-TW\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.awoo.ai\/zh-hant\/#\/schema\/person\/48b9f04da77072e393b6cafe771f6944\",\"name\":\"awoo Intelligence\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[SEO \u6280\u8853\u5206\u4eab] htaccess 301 Redirect \u6559\u5b78 - awoo","description":"\u5148\u524d\u6211\u5011\u5728\u975c\u614b\u7db2\u9801\u5982\u4f55\u6b63\u78ba\u8a2d\u5b9a301\u8f49\u5740\u63d0\u904e\u5404\u7a2e301\u6c38\u4e45\u8f49\u5740\u8a9e\u6cd5\uff0c\u9019\u6b21\u8981\u6559\u5927\u5bb6\u4f7f\u7528.htaccess\u4f86\u9032\u884c301 Redirect\u3002 \u5982\u4f55\u5efa\u7acb.htaccess\uff1f \u9996\u5148\u60a8\u7684server\u5fc5\u9808\u662fapache\u7cfb\u7d71\uff0c\u901a\u5e38\u60a8\u4f7f\u7528PHP\u7a7a\u9593\u7684\u8a71\uff0c\u90a3\u5c31\u662f\u4f7f\u7528apache\u3002\u5728\u7db2\u9801\u7684\u6839\u76ee\u9304\u4e0b\uff0c\u901a\u5e38\u53ef\u4ee5\u627e\u5230\u4e00\u500b.htaccess\u7684\u6a94\u6848\uff0c\u82e5\u6c92\u6709\u5247\u9700\u81ea\u5df2\u5efa\u7acb\u4e00\u500b\u3002\u7531\u65bc\u5728Windows\u4e2d\u7121\u6cd5\u5efa\u7acb\u4ee5\u9ede\u70ba\u958b\u982d\u7684\u6a94\u6848\uff0c\u6545\u6211\u5011\u5148\u5efa\u7acb\u4e00\u500bhtaccess.txt\u6a94\uff0c\u4e0a\u50b3\u81f3FTP\u5f8c\u518d\u4fee\u6539\u6a94\u540d\u70ba.htaccess\u5373\u53ef\u3002(\u82e5\u4e0a\u50b3\u81f3FTP\u5f8c\u627e\u4e0d\u5230\u6a94\u6848\uff0c\u9808\u5728FTP\u8edf\u9ad4\u8a2d\u5b9a\u5f37\u5236\u986f\u793a\u96b1\u85cf\u6a94\u6848)","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.awoo.ai\/zh-hant\/blog\/htaccess-301-redirect\/","og_locale":"zh_TW","og_type":"article","og_title":"[SEO \u6280\u8853\u5206\u4eab] htaccess 301 Redirect \u6559\u5b78 - awoo","og_description":"\u5148\u524d\u6211\u5011\u5728\u975c\u614b\u7db2\u9801\u5982\u4f55\u6b63\u78ba\u8a2d\u5b9a301\u8f49\u5740\u63d0\u904e\u5404\u7a2e301\u6c38\u4e45\u8f49\u5740\u8a9e\u6cd5\uff0c\u9019\u6b21\u8981\u6559\u5927\u5bb6\u4f7f\u7528.htaccess\u4f86\u9032\u884c301 Redirect\u3002 \u5982\u4f55\u5efa\u7acb.htaccess\uff1f \u9996\u5148\u60a8\u7684server\u5fc5\u9808\u662fapache\u7cfb\u7d71\uff0c\u901a\u5e38\u60a8\u4f7f\u7528PHP\u7a7a\u9593\u7684\u8a71\uff0c\u90a3\u5c31\u662f\u4f7f\u7528apache\u3002\u5728\u7db2\u9801\u7684\u6839\u76ee\u9304\u4e0b\uff0c\u901a\u5e38\u53ef\u4ee5\u627e\u5230\u4e00\u500b.htaccess\u7684\u6a94\u6848\uff0c\u82e5\u6c92\u6709\u5247\u9700\u81ea\u5df2\u5efa\u7acb\u4e00\u500b\u3002\u7531\u65bc\u5728Windows\u4e2d\u7121\u6cd5\u5efa\u7acb\u4ee5\u9ede\u70ba\u958b\u982d\u7684\u6a94\u6848\uff0c\u6545\u6211\u5011\u5148\u5efa\u7acb\u4e00\u500bhtaccess.txt\u6a94\uff0c\u4e0a\u50b3\u81f3FTP\u5f8c\u518d\u4fee\u6539\u6a94\u540d\u70ba.htaccess\u5373\u53ef\u3002(\u82e5\u4e0a\u50b3\u81f3FTP\u5f8c\u627e\u4e0d\u5230\u6a94\u6848\uff0c\u9808\u5728FTP\u8edf\u9ad4\u8a2d\u5b9a\u5f37\u5236\u986f\u793a\u96b1\u85cf\u6a94\u6848)","og_url":"https:\/\/www.awoo.ai\/zh-hant\/blog\/htaccess-301-redirect\/","og_site_name":"awoo","article_published_time":"2011-08-02T07:21:02+00:00","article_modified_time":"2023-12-28T10:26:28+00:00","og_image":[{"url":"https:\/\/www.awoo.com.tw\/blog\/wp-content\/uploads\/2011\/08\/htaccess-ftp.jpg","type":"","width":"","height":""}],"author":"awoo Intelligence","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005:":"awoo Intelligence"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.awoo.ai\/zh-hant\/blog\/htaccess-301-redirect\/","url":"https:\/\/www.awoo.ai\/zh-hant\/blog\/htaccess-301-redirect\/","name":"[SEO \u6280\u8853\u5206\u4eab] htaccess 301 Redirect \u6559\u5b78 - awoo","isPartOf":{"@id":"https:\/\/www.awoo.ai\/zh-hant\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.awoo.ai\/zh-hant\/blog\/htaccess-301-redirect\/#primaryimage"},"image":{"@id":"https:\/\/www.awoo.ai\/zh-hant\/blog\/htaccess-301-redirect\/#primaryimage"},"thumbnailUrl":"https:\/\/www.awoo.com.tw\/blog\/wp-content\/uploads\/2011\/08\/htaccess-ftp.jpg","datePublished":"2011-08-02T07:21:02+00:00","dateModified":"2023-12-28T10:26:28+00:00","author":{"@id":"https:\/\/www.awoo.ai\/zh-hant\/#\/schema\/person\/48b9f04da77072e393b6cafe771f6944"},"description":"\u5148\u524d\u6211\u5011\u5728\u975c\u614b\u7db2\u9801\u5982\u4f55\u6b63\u78ba\u8a2d\u5b9a301\u8f49\u5740\u63d0\u904e\u5404\u7a2e301\u6c38\u4e45\u8f49\u5740\u8a9e\u6cd5\uff0c\u9019\u6b21\u8981\u6559\u5927\u5bb6\u4f7f\u7528.htaccess\u4f86\u9032\u884c301 Redirect\u3002 \u5982\u4f55\u5efa\u7acb.htaccess\uff1f \u9996\u5148\u60a8\u7684server\u5fc5\u9808\u662fapache\u7cfb\u7d71\uff0c\u901a\u5e38\u60a8\u4f7f\u7528PHP\u7a7a\u9593\u7684\u8a71\uff0c\u90a3\u5c31\u662f\u4f7f\u7528apache\u3002\u5728\u7db2\u9801\u7684\u6839\u76ee\u9304\u4e0b\uff0c\u901a\u5e38\u53ef\u4ee5\u627e\u5230\u4e00\u500b.htaccess\u7684\u6a94\u6848\uff0c\u82e5\u6c92\u6709\u5247\u9700\u81ea\u5df2\u5efa\u7acb\u4e00\u500b\u3002\u7531\u65bc\u5728Windows\u4e2d\u7121\u6cd5\u5efa\u7acb\u4ee5\u9ede\u70ba\u958b\u982d\u7684\u6a94\u6848\uff0c\u6545\u6211\u5011\u5148\u5efa\u7acb\u4e00\u500bhtaccess.txt\u6a94\uff0c\u4e0a\u50b3\u81f3FTP\u5f8c\u518d\u4fee\u6539\u6a94\u540d\u70ba.htaccess\u5373\u53ef\u3002(\u82e5\u4e0a\u50b3\u81f3FTP\u5f8c\u627e\u4e0d\u5230\u6a94\u6848\uff0c\u9808\u5728FTP\u8edf\u9ad4\u8a2d\u5b9a\u5f37\u5236\u986f\u793a\u96b1\u85cf\u6a94\u6848)","breadcrumb":{"@id":"https:\/\/www.awoo.ai\/zh-hant\/blog\/htaccess-301-redirect\/#breadcrumb"},"inLanguage":"zh-TW","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.awoo.ai\/zh-hant\/blog\/htaccess-301-redirect\/"]}]},{"@type":"ImageObject","inLanguage":"zh-TW","@id":"https:\/\/www.awoo.ai\/zh-hant\/blog\/htaccess-301-redirect\/#primaryimage","url":"https:\/\/www.awoo.com.tw\/blog\/wp-content\/uploads\/2011\/08\/htaccess-ftp.jpg","contentUrl":"https:\/\/www.awoo.com.tw\/blog\/wp-content\/uploads\/2011\/08\/htaccess-ftp.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.awoo.ai\/zh-hant\/blog\/htaccess-301-redirect\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9801","item":"https:\/\/www.awoo.ai\/zh-hant\/"},{"@type":"ListItem","position":2,"name":"[SEO \u6280\u8853\u5206\u4eab] htaccess 301 Redirect \u6559\u5b78"}]},{"@type":"WebSite","@id":"https:\/\/www.awoo.ai\/zh-hant\/#website","url":"https:\/\/www.awoo.ai\/zh-hant\/","name":"awoo","description":"\u53f0\u7063 AI MarTech \u9818\u5c0e\u54c1\u724c","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.awoo.ai\/zh-hant\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-TW"},{"@type":"Person","@id":"https:\/\/www.awoo.ai\/zh-hant\/#\/schema\/person\/48b9f04da77072e393b6cafe771f6944","name":"awoo Intelligence"}]}},"_links":{"self":[{"href":"https:\/\/www.awoo.ai\/zh-hant\/wp-json\/wp\/v2\/posts\/2368","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.awoo.ai\/zh-hant\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.awoo.ai\/zh-hant\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.awoo.ai\/zh-hant\/wp-json\/wp\/v2\/users\/42"}],"replies":[{"embeddable":true,"href":"https:\/\/www.awoo.ai\/zh-hant\/wp-json\/wp\/v2\/comments?post=2368"}],"version-history":[{"count":1,"href":"https:\/\/www.awoo.ai\/zh-hant\/wp-json\/wp\/v2\/posts\/2368\/revisions"}],"predecessor-version":[{"id":41611,"href":"https:\/\/www.awoo.ai\/zh-hant\/wp-json\/wp\/v2\/posts\/2368\/revisions\/41611"}],"wp:attachment":[{"href":"https:\/\/www.awoo.ai\/zh-hant\/wp-json\/wp\/v2\/media?parent=2368"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.awoo.ai\/zh-hant\/wp-json\/wp\/v2\/categories?post=2368"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.awoo.ai\/zh-hant\/wp-json\/wp\/v2\/tags?post=2368"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}