{"id":5734,"date":"2025-02-14T10:17:39","date_gmt":"2025-02-14T02:17:39","guid":{"rendered":"https:\/\/www.baishitou.cn\/?p=5734"},"modified":"2025-02-14T10:17:39","modified_gmt":"2025-02-14T02:17:39","slug":"dedebiz%e5%a6%82%e4%bd%95%e5%8e%bb%e6%8e%89tag%e6%a0%87%e7%ad%beurl%e4%b8%ad%e7%9a%84tags-php%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/www.baishitou.cn\/5734.html","title":{"rendered":"DEDEBIZ\u5982\u4f55\u53bb\u6389TAG\u6807\u7b7eURL\u4e2d\u7684tags.php\uff1f"},"content":{"rendered":"

DEDEBIZ\u76f8\u6bd4\u4e8eDEDECMS\u90e8\u5206\u5730\u65b9\u8fdb\u884c\u4e86\u4f18\u5316\u3002\u6bd4\u5982\u4f2a\u9759\u6001\u7684\u529f\u80fd\uff0c\u4f60\u53ea\u7528\u5728\u540e\u53f0\u8bbe\u7f6e\u91cc\u9762\u5f00\u542f\u4f2a\u9759\u6001\uff0c\u653e\u4e0a\u4f2a\u9759\u6001\u89c4\u5219\u5c31\u884c\u4e86\uff0c\u4e0d\u50cfDEDECMS\u90a3\u6837\uff0c\u5f97\u81ea\u5df2\u4fee\u6539\u6587\u4ef6\u6dfb\u52a0\u4f2a\u9759\u6001\u3002\u5728\u6d4b\u8bd5\u4e2d\u53d1\u73b0DEDEBIZ\u7684\u6587\u7ae0\u9875\u9762\u7684TAG\u6807\u7b7e\u7684\u5730\u5740\u4e3a\/apps\/tags.php?\/\u6807\u7b7eID\/,\u8fd9\u6837\u7684\u5730\u5740\u5373\u4e0d\u7f8e\u89c2\uff0c\u4e5f\u5bfc\u822a\u7f51\u5740\u8fc7\u957f\uff0c\u5982\u4e0b\u56fe<\/p>\n

\"\"<\/a><\/p>\n

\u4e0b\u9762\u6211\u4eec\u5c31\u6765\u628a\u4ed6\u53bb\u6389\uff0c\u7f8e\u5316\u4e00\u4e0b\u3002\u6253\u5f00\/system\/taglib\/tag.lib.php\uff0c\u5927\u7ea658\u884c\u3002<\/p>\n

\"\"<\/a><\/p>\n

\u628a\/apps\/tags.php?\/\u4fee\u6539\u4e3a\uff1a\/apps\/,\u5982\u679c\u4f60\u4e0d\u7528\u4f2a\u9759\u6001\uff0c\u5c31\u7528\u52a8\u6001\u7684\u5730\u5740\uff0c\u4f60\u7684\u6807\u7b7eURL\u5730\u5740\u5c31\u662f\/apps\/\u6807\u7b7eID\u3002\u6211\u7528\u7684\u662f\u4f2a\u9759\u6001\u7684\uff0c\u4e3a\u4e86\u66f4\u76f4\u89c2\uff0c\u4e00\u770b\u76ee\u5f55\u5c31\u662fTAG\uff0c\u4fbf\u4e8eSEO\u6536\u5f55\u3002\u5c31\u628a\u5b83\u4fee\u6539\u6210\/tags\/ ,\u8fd9\u6837\u7684\u8bdd\uff0c\u6807\u7b7e\u7684URL\u5730\u5740\u5c31\u662f\/tags\/\u6807\u7b7eID\uff0c\u6211\u8fd9\u91cc\u4fee\u6539\u540e\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n

\"\"<\/a><\/p>\n

\u663e\u793a\u6548\u679c\u5c31\u662f\uff1a<\/p>\n

\"\"<\/a><\/p>\n

TAG\u6240\u7528\u4f2a\u9759\u6001\u89c4\u5219\uff08Nginx\u73af\u5883\uff09\uff1a<\/p>\n

#TAG\u6807\u7b7e\r\nrewrite ^\/tags\\.html$ \/apps\/tags.php;\r\nrewrite ^\/tags\/(.*)(?:(\\?.*))* \/apps\/tags.php?\\\/$1;\r\nrewrite ^\/tags\/(.*)\\\/(?:(\\?.*))*  \/apps\/tags.php?\\\/$1\\\/;\r\nrewrite ^\/tags\/(.*)\\\/([0-9])(?:(\\?.*))* \/apps\/tags.php?\\\/$1\\\/$2;\r\nrewrite ^\/tags\/(.*)\\\/([0-9])\\\/(?:(\\?.*))*  \/apps\/tags.php?\\\/$1\\\/$2\\\/;\r\n<\/code><\/pre>\n

\u4e0a\u9762\u53ea\u662f\u6587\u4ef6\u9875\u9762\u7684TAG\u6807\u7b7eURL\uff0c\u5217\u8868\u9875\u7684\u6807\u7b7e\u4e5f\u9700\u8981\u4fee\u6539\uff0c\u6253\u5f00\/system\/extend.func.php\u6587\u4ef6\uff0c\u572833\u884c\uff0c\u6309\u7167\u9700\u8981\u4fee\u6539\u5c31\u884c\u4e86\u3002<\/p>\n

\"\"<\/a><\/p>\n

\u4fdd\u5b58\u3002\u5b8c\u5de5\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

DEDEBIZ\u76f8\u6bd4\u4e8eDEDECMS\u90e8\u5206\u5730\u65b9\u8fdb\u884c\u4e86\u4f18\u5316\u3002\u6bd4\u5982\u4f2a\u9759\u6001\u7684\u529f\u80fd\uff0c\u4f60\u53ea\u7528\u5728\u540e\u53f0\u8bbe\u7f6e\u91cc\u9762\u5f00\u542f\u4f2a\u9759\u6001\uff0c\u653e\u4e0a\u4f2a […]<\/p>\n","protected":false},"author":1,"featured_media":5736,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[1754,1772,1329],"class_list":["post-5734","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-web","tag-dedebiz","tag-tags-php","tag-tag"],"_links":{"self":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/5734","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/comments?post=5734"}],"version-history":[{"count":0,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/5734\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/media\/5736"}],"wp:attachment":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/media?parent=5734"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/categories?post=5734"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/tags?post=5734"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}