{"id":42,"date":"2010-12-14T14:22:06","date_gmt":"2010-12-14T14:22:06","guid":{"rendered":"http:\/\/www.xiit.cn\/?p=42"},"modified":"2010-12-14T14:22:06","modified_gmt":"2010-12-14T14:22:06","slug":"%e5%88%a9%e7%94%a8-htaccess-301%e9%87%8d%e5%ae%9a%e5%90%91%e7%bd%91%e7%ab%99%e6%89%80%e6%9c%89%e9%a1%b5%e9%9d%a2","status":"publish","type":"post","link":"https:\/\/xiit.cn\/index.php\/2010\/12\/14\/%e5%88%a9%e7%94%a8-htaccess-301%e9%87%8d%e5%ae%9a%e5%90%91%e7%bd%91%e7%ab%99%e6%89%80%e6%9c%89%e9%a1%b5%e9%9d%a2\/","title":{"rendered":"\u5229\u7528.htaccess 301\u91cd\u5b9a\u5411\u7f51\u7ad9\u6240\u6709\u9875\u9762"},"content":{"rendered":"<p>\u5229\u7528Apache\u7684.htaccess\uff0c\u4f7f\u7528301\u91cd\u5b9a\u5411<\/p>\n<p>\u8fd9\u91cc\u7684.htaccess\u5199\u6cd5\u5982\u4e0b\uff0c\u4ec5\u5171\u53c2\u8003\uff1a<br \/>\n\u7528301\u5c06\u4e0d\u5e26WWW\u7684\u57df\u540d\u91cd\u5b9a\u5411\uff1a\u5373\u5c06xiit.cn\u7edf\u4e00\u4e3awww.xiit.cn<\/p>\n<blockquote><p><code>rewriteEngine on<br \/>\nrewriteCond %{http_host} ^xiit.cn[NC]<br \/>\nrewriteRule ^(.*)$ http:\/\/www.xiit.cn\/$1 [R=301,L]<\/code><\/p><\/blockquote>\n<p><!--more-->\u7528301\u5c06\u7ed1\u5b9a\u7684\u5176\u4ed6\u57df\u540d\u91cd\u5b9a\u5411\u5230\u4e3b\u57df\u540d,\u5c06xiit.cn\u548cwww.xiit.cn\u7edf\u4e00\u4e3awww.teayp.com<\/p>\n<blockquote><p><code>RewriteEngine on<br \/>\nRewriteCond %{HTTP_HOST} ^xiit.cn$ [OR]<br \/>\nRewriteCond %{HTTP_HOST} ^www.xiit.cn$<br \/>\nRewriteRule ^(.*)$ http:\/\/www.teayp.com\/$1 [R=301,L]<\/code><\/p><\/blockquote>\n<p>\u6b64\u5904\u4e5f\u53ef\u4ee5\u5199\u6210\uff1a<\/p>\n<blockquote><p><code>RewriteCond %{HTTP_HOST} ^(www.)?xiit.cn$<br \/>\nRewriteRule ^(.*)$ http:\/\/www.teayp.com\/$1 [R=301,L]<\/code><\/p><\/blockquote>\n<p>\u5f53\u7136\uff0c\u4e5f\u53ef\u4ee5\u518d\u6269\u5c55\u4e00\u4e0b\uff0c\u5c06index.html\u3001index.php\u7b49\u4e5f\u91cd\u5b9a\u5411\u4e00\u4e0b\uff1a\u5c06www.xiit.cn\/index.php\u7edf\u4e00\u4e3awww.teayp.com<\/p>\n<blockquote><p><code>RewriteEngine on<br \/>\nRewriteCond %{THE_REQUEST} ^[A-Z]{3,9} \/index.php HTTP\/<br \/>\nRewriteRule ^index.php$ http:\/\/www.teayp.com\/ [R=301,L]<\/code><\/p><\/blockquote>\n<p>\u5f04\u597d\u4e4b\u540e,\u7528\u8fd9\u4e2a\u514d\u8d39\u5de5\u5177\u68c0\u67e5\u4e00\u4e0b\u8f6c\u5411\u7684\u6548\u679c\u5427\uff1a<\/p>\n<p>http:\/\/www.internetofficer.com\/seo-tool\/redirect-check\/<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5229\u7528Apache\u7684.htaccess\uff0c\u4f7f\u7528301\u91cd\u5b9a\u5411 \u8fd9\u91cc\u7684.htaccess\u5199\u6cd5\u5982\u4e0b\uff0c\u4ec5\u5171\u53c2\u8003\uff1a \u7528301 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[20,21],"class_list":["post-42","post","type-post","status-publish","format-standard","hentry","category-apache","tag-htaccess","tag-21"],"_links":{"self":[{"href":"https:\/\/xiit.cn\/index.php\/wp-json\/wp\/v2\/posts\/42","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xiit.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xiit.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xiit.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xiit.cn\/index.php\/wp-json\/wp\/v2\/comments?post=42"}],"version-history":[{"count":0,"href":"https:\/\/xiit.cn\/index.php\/wp-json\/wp\/v2\/posts\/42\/revisions"}],"wp:attachment":[{"href":"https:\/\/xiit.cn\/index.php\/wp-json\/wp\/v2\/media?parent=42"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xiit.cn\/index.php\/wp-json\/wp\/v2\/categories?post=42"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xiit.cn\/index.php\/wp-json\/wp\/v2\/tags?post=42"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}