{"id":53,"date":"2026-11-06T14:08:36","date_gmt":"2026-11-06T06:08:36","guid":{"rendered":"http:\/\/pro369.com\/blog\/?p=53"},"modified":"2026-11-06T14:08:36","modified_gmt":"2026-11-06T06:08:36","slug":"wordpress%e9%83%a8%e8%90%bd%e6%a0%bc%e8%88%87robotstxt","status":"publish","type":"post","link":"https:\/\/por.tw\/blog\/2026\/11\/06\/wordpress%e9%83%a8%e8%90%bd%e6%a0%bc%e8%88%87robotstxt\/","title":{"rendered":"wordpress\u90e8\u843d\u683c\u8207robots.txt"},"content":{"rendered":"<p><span style=\"font-size: small;\"><strong><span style=\"background-color: #ffff00;\">robots.txt\u61c9\u8a72\u5beb\u7684\u8d8a\u7c21\u55ae\u8d8a\u597d\uff0c\u4e0d\u904e\u5f8c\u53f0\u7684\u7db2\u9801\u662f\u5fc5\u9808\u7981\u6389\u7684\uff0c\u800c\u4e14\u4e00\u500b\u6b63\u898f\u7684\u7db2\u7ad9\u9700\u8981\u6709\u4e00\u500brobots.txt\u6a94\u6848\u3002<\/span><br \/>\n<span style=\"color: #008000;\">\u9019\u88e1\u5e7e\u7a2e\u6bd4\u8f03\u9069\u5408wordpress\u90e8\u843d\u683c\u7684robots\u5beb\u6cd5\uff0c\u56b4\u683c\u7684\u3001\u7c21\u55ae\u7684\u548c\u5408\u9069\u7684\uff0c\u96a8\u4f60\u6311\u3002<\/span><\/strong><\/span><\/p>\n<p>\u6700\u7c21\u55ae\u7684\u5beb\u6cd5<\/p>\n<p>User-agent: *<br \/>\nDisallow: \/wp-<br \/>\nDisallow: \/?s=<br \/>\nSitemap: http:\/\/shandian.biz\/sitemap.xml<\/p>\n<p>\u89e3\u91cb\uff1a<br \/>\nUser-agent: *\uff0c\u5bb9\u8a31\u6240\u6709\u8718\u86db\u8a2a\u554f\uff0c\u9650\u5236\u4ee5\u300cwp-\u300d\u958b\u982d\u76ee\u9304\u53ca\u6a94\u6848\uff0c\u9650\u5236\u6293\u53d6\u7ad9\u5167\u641c\u5c0b\u9801\u9762\u3002<br \/>\nSitemap\u662f\u6307\u4f60\u7db2\u7ad9\u7684\u76ee\u9304\u7d50\u69cb\uff0c\u901a\u5e38\u662f\u4ee5xml\u6a94\u6848\u7684\u5f62\u5f0f\u5b58\u5728\u3002wordpress\u90e8\u843d\u683c\u53ef\u4ee5\u901a\u904eGoogle XML Sitemaps\u5916\u639b\u7a0b\u5f0f\u751f\u6210sitemap\u3002<\/p>\n<p>\u6700\u56b4\u683c\u7684\u5beb\u6cd5<\/p>\n<p>User-agent: *<br \/>\nDisallow: \/wp-*<br \/>\n#Allow: \/wp-content\/uploads\/<br \/>\nDisallow: \/*.php$<br \/>\nDisallow: \/*.inc$<br \/>\nDisallow: \/*.js$<br \/>\nDisallow: \/*.css$<br \/>\nDisallow: \/?s=<br \/>\nSitemap: http:\/\/shandian.biz\/sitemap.xml<\/p>\n<p>\u89e3\u91cb\uff1a<br \/>\n\u6bd4\u6700\u7c21\u55ae\u7684\u5beb\u6cd5\u8981\u66f4\u56b4\u683c\uff0c\u9084\u9650\u5236\u6293\u53d6.php\u6a94\u6848\u3001.inc\u6a94\u6848\u3001.js\u6a94\u6848\u3001.css\u6a94\u6848\uff0c\u9650\u5236\u6293\u53d6\u641c\u5c0b\u7d50\u679c\u3002<\/p>\n<p>Disallow: \/wp-* \u6703\u9023\u540c\u9644\u4ef6\u76ee\u9304\u4e00\u8d77\u9650\u5236\u6293\u53d6\uff0c\u5982\u679c\u60f3\u8b93\u641c\u5c0b\u5f15\u64ce\u6293\u53d6\u9644\u4ef6\u4e2d\u7684\u5167\u5bb9\uff0c\u5c07\u7b2c\u4e09\u884c\u7684 # \u865f\u8a3b\u91cb\u53bb\u6389\u3002Allow \u4e0d\u662f\u6240\u6709\u641c\u5c0b\u5f15\u64ce\u90fd\u652f\u63f4\u3002<\/p>\n<p>\u6bd4\u8f03\u5408\u7406\u7684\u5beb\u6cd5<\/p>\n<p>User-agent: *<br \/>\nDisallow: \/wp-admin<br \/>\nDisallow: \/wp-content\/plugins<br \/>\nDisallow: \/wp-content\/themes<br \/>\nDisallow: \/wp-includes<br \/>\nDisallow: \/?s=<br \/>\nSitemap: http:\/\/shandian.biz\/sitemap.xml<\/p>\n<p>\u5bb9\u8a31\u6240\u6709\u641c\u5c0b\u5f15\u64ce\u6293\u53d6\uff0c\u9010\u4e00\u5217\u8209\u9700\u8981\u9650\u5236\u7684\u76ee\u9304\uff0c\u9650\u5236\u6293\u53d6\u641c\u5c0b\u7d50\u679c\u3002<\/p>\n<p>robots.txt\u5176\u4ed6\u5beb\u6cd5<\/p>\n<p>\u70ba\u907f\u514d\u5728\u641c\u5c0b\u5f15\u64ce\u4e2d\u51fa\u73fe\u91cd\u8907\u9801\u9762\uff0cWordpress\u73a9\u5bb6\u81ea\u5275\u4e86\u5f88\u591arobots\u5beb\u6cd5\uff0c\u5217\u8209\u4e00\u4e9b\u5e38\u7528\u7684\uff0c\u4f5c\u70ba\u53c3\u8003\uff08\u9069\u7528\u65bc\u507d\u975c\u614b\u6a21\u5f0f\u7684\u6c38\u4e45\u9023\u7d50\uff09\uff1a<\/p>\n<p>Disallow: \/page\/<\/p>\n<p>#\u9650\u5236\u6293\u53d6Wordpress\u5206\u9801<\/p>\n<p>Disallow: \/category\/*\/page\/*<\/p>\n<p>#\u9650\u5236\u6293\u53d6\u5206\u985e\u7684\u5206\u9801<\/p>\n<p>Disallow: \/tag\/<\/p>\n<p>#\u9650\u5236\u6293\u53d6\u6a19\u7c64\u9801\u9762<\/p>\n<p>Disallow: *\/trackback\/<\/p>\n<p>#\u9650\u5236\u6293\u53d6Trackback\u5167\u5bb9<\/p>\n<p>Disallow: \/category\/*<\/p>\n<p>#\u9650\u5236\u6293\u53d6\u6240\u6709\u5206\u985e\u6e05\u55ae<\/p>\n<p>\u6700\u5f8c\uff0c\u63a8\u85a6\u4f7f\u7528Google\u7ba1\u7406\u54e1\u5de5\u5177\uff0c\u767b\u5165\u5f8c\u8a2a\u554f\u300c\u5de5\u5177 -&gt; \u5206\u6790 robots.txt\u300d\uff0c\u6aa2\u67e5\u6a94\u6848\u6709\u6548\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"post-excerpt\"><p>robots.txt\u61c9\u8a72\u5beb\u7684\u8d8a\u7c21\u55ae\u8d8a\u597d\uff0c\u4e0d\u904e\u5f8c\u53f0\u7684\u7db2\u9801\u662f\u5fc5\u9808\u7981\u6389\u7684\uff0c\u800c\u4e14\u4e00\u500b\u6b63\u898f\u7684\u7db2\u7ad9\u9700\u8981\u6709\u4e00\u500brobots.<\/p>\n<\/div>","protected":false},"author":1,"featured_media":510,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[34],"class_list":["post-53","post","type-post","status-publish","format-standard","has-post-thumbnail","category-wordpress-","tag-wordpress-"],"_links":{"self":[{"href":"https:\/\/por.tw\/blog\/wp-json\/wp\/v2\/posts\/53","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/por.tw\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/por.tw\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/por.tw\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/por.tw\/blog\/wp-json\/wp\/v2\/comments?post=53"}],"version-history":[{"count":0,"href":"https:\/\/por.tw\/blog\/wp-json\/wp\/v2\/posts\/53\/revisions"}],"wp:attachment":[{"href":"https:\/\/por.tw\/blog\/wp-json\/wp\/v2\/media?parent=53"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/por.tw\/blog\/wp-json\/wp\/v2\/categories?post=53"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/por.tw\/blog\/wp-json\/wp\/v2\/tags?post=53"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}