{"id":4881,"date":"2021-12-01T00:04:38","date_gmt":"2021-11-30T16:04:38","guid":{"rendered":"https:\/\/www.baishitou.cn\/?p=4881"},"modified":"2021-12-01T00:04:38","modified_gmt":"2021-11-30T16:04:38","slug":"%e8%bf%85%e7%9d%bfcms%e6%90%9c%e7%b4%a2url%e5%a6%82%e4%bd%95%e4%bf%ae%e6%94%b9%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/www.baishitou.cn\/4881.html","title":{"rendered":"\u8fc5\u777fCMS\u641c\u7d22URL\u5982\u4f55\u4fee\u6539\uff1f"},"content":{"rendered":"

\u6700\u8fd1\u7531\u4e8e\u7ec7\u68a6\u5f00\u59cb\u5272\u97ed\u83dc\u4e86\uff0c\u6240\u4ee5\u5c31\u653e\u5f03\u7528\u7ec7\u68a6\u7f51\u7ad9\u7ba1\u7406\u7a0b\u5e8f\u505a\u7ad9\u4e86\uff0c\u9009\u62e9\u4e86\u636e\u79f0\u662f\u9075\u884cMIT\u5f00\u6e90\u534f\u8bae\uff0c\u514d\u8d39\u4e14\u4e0d\u9650\u5546\u7528\u7684\u8fc5\u777fCMS\uff0c\u4e0d\u77e5\u9053\u4ed6\u4eec\u7684\u627f\u8bfa\u80fd\u575a\u6301\u591a\u4e45\uff0c\u7acb\u8d34\u4e3a\u8bc1\u3002<\/p>\n

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

\u597d\u4e86\uff0c\u5e9f\u8bdd\u4e0d\u591a\u8bf4\uff0c\u5728\u6d4b\u8bd5\u8fc7\u7a0b\u4e2d\uff0c\u53d1\u73b0\u641c\u7d22URL\u7684\u663e\u793a\u4e3a\uff1a<\/p>\n

\/news\/search\/\u865a\u62df\u6570\u636e.html<\/p>\n

\u6211\u611f\u89c9\u8fd9\u4e2a\u5730\u5740\u6709\u70b9\u957f\uff0c\u6240\u4ee5\u60f3\u4fee\u6539\u4e3a<\/p>\n

\/search\/\u865a\u62df\u6570\u636e.html<\/p>\n

\u5171\u4eab\u6a21\u5757\u641c\u7d22URL\u89c4\u5212\u8bbe\u7f6e\u91cc\u9762\uff0c\u628a\u641c\u7d22\u9875\u91cc\u9762\u9ed8\u8ba4\u7684<\/p>\n

{modname}\/search.html\r\n<\/code><\/pre>\n

\u4fee\u6539\u4e3a\uff1a<\/p>\n

search.html\r\n<\/code><\/pre>\n

\u641c\u7d22\u5206\u9875\u91cc\u9762\u7684<\/p>\n

{modname}\/search\/{param}.html\r\n<\/code><\/pre>\n

\u4fee\u6539\u4e3a<\/p>\n

search\/{param}.html<\/p>\n

\u4fee\u6539\u5982\u4e0b\u56fe\u6240\u793a<\/p>\n

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

\u8fd9\u6837\u4fee\u6539\u540e\uff0c\u5728\u751f\u6210\u89e3\u6790\u89c4\u5219\u65f6\uff0c\u4f1a\u6709\u9519\u8bef\u63d0\u793a<\/p>\n

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

\u8fd9\u4e2a\u4e0d\u7528\u7406\u4f1a\uff0c\u76f4\u63a5\u6253\u5f00\/config\/rewrite.php\uff0c\u628a\u4e0b\u5217\u641c\u7d22\u4f2a\u9759\u6001\u89c4\u5219\u6dfb\u52a0\u8fdb\u53bb\u5373\u53ef\u3002<\/p>\n

\/\/ \u5171\u4eab\u6a21\u5757\u641c\u7d22---\u89e3\u6790\u89c4\u5219----\u5f00\u59cb\r\n    \"search\\\/(.+)\\.html\" => \"index.php?s=news&c=search&rewrite=$1\",  \/\/\u3010\u5171\u4eab\u6a21\u5757\u641c\u7d22\u3011\u6a21\u5757\u641c\u7d22\u9875(\u5206\u9875)\uff08{modname}\/search\/{param}.html\uff09\r\n    \"search\\.html\" => \"index.php?s=news&c=search\",  \/\/\u3010\u5171\u4eab\u6a21\u5757\u641c\u7d22\u3011\u6a21\u5757\u641c\u7d22\u9875\uff08{modname}\/search.html\uff09\r\n\/\/ \u5171\u4eab\u6a21\u5757\u641c\u7d22---\u89e3\u6790\u89c4\u5219----\u7ed3\u675f\u4e0d<\/code><\/pre>\n

\u4ee5\u4e0a\u89c4\u5219\u5b9e\u6d4b\u6709\u6548\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"

\u6700\u8fd1\u7531\u4e8e\u7ec7\u68a6\u5f00\u59cb\u5272\u97ed\u83dc\u4e86\uff0c\u6240\u4ee5\u5c31\u653e\u5f03\u7528\u7ec7\u68a6\u7f51\u7ad9\u7ba1\u7406\u7a0b\u5e8f\u505a\u7ad9\u4e86\uff0c\u9009\u62e9\u4e86\u636e\u79f0\u662f\u9075\u884cMIT\u5f00\u6e90\u534f\u8bae\uff0c\u514d\u8d39\u4e14\u4e0d\u9650\u5546\u7528\u7684 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[1543,1544,1545],"class_list":["post-4881","post","type-post","status-publish","format-standard","hentry","category-web","tag-xunruicms","tag-url","tag-cms"],"_links":{"self":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/4881","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=4881"}],"version-history":[{"count":0,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/4881\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/media?parent=4881"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/categories?post=4881"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/tags?post=4881"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}