{"id":333,"date":"2021-07-28T14:50:47","date_gmt":"2021-07-28T06:50:47","guid":{"rendered":"http:\/\/egonlin.com\/?p=333"},"modified":"2024-06-03T18:40:07","modified_gmt":"2024-06-03T10:40:07","slug":"%e8%b5%84%e6%ba%90%e5%88%86%e7%a6%bb%e5%92%8crewrite","status":"publish","type":"post","link":"https:\/\/egonlin.com\/?p=333","title":{"rendered":"nginx\u7684rewrite"},"content":{"rendered":"<p>Nginx\u7684Rewrite\u91cd\u5199<\/p>\n<h1>\u4e00\u3001\u91cd\u5199\u6a21\u5757\u57fa\u672c\u6982\u8ff0<\/h1>\n<p>\u5b98\u65b9\u6587\u6863\uff1a<a href=\"https:\/\/nginx.org\/en\/docs\/http\/ngx_http_rewrite_module.html\">https:\/\/nginx.org\/en\/docs\/http\/ngx_http_rewrite_module.html<\/a><\/p>\n<h2>1.1\u3001\u4ec0\u4e48\u662f\u91cd\u5199<\/h2>\n<pre><code>\u91cd\u5199\u6307\u7684\u662f\u628aurl\u4e2d\u7684uri\u8def\u5f84\u6539\u5199\/\u91cd\u5b9a\u5411\u4e3a\u4e00\u4e2a\u65b0\u7684uri\u8def\u5f84\u6216url\u5730\u5740\r\n\u91cd\u5199\u529f\u80fd\u7684\u5b9e\u73b0\u4f9d\u8d56\u4e8enginx\u7684ngx_http_rewrite_module\u6a21\u5757\r\n<\/code><\/pre>\n<p>\u5f3a\u8c03<br \/>\n\u5f3a\u8c03<br \/>\n\u5f3a\u8c03<br \/>\n\u5f3a\u8c03<br \/>\n\u5f3a\u8c03<br \/>\n\u5f3a\u8c03<br \/>\n\u5f3a\u8c03<br \/>\n\u5f3a\u8c03<br \/>\n\u5f3a\u8c03<br \/>\n\u5f3a\u8c03<br \/>\n\u5f3a\u8c03<br \/>\n\u5f3a\u8c03<br \/>\n\u5f3a\u8c03<\/p>\n<p>\u5f3a\u8c03\uff1a\uff08\u4f60\u6700\u5bb9\u6613\u88ab\u7f51\u4e0a\u91ce\u9e21\u6587\u7ae0\u8ff7\u60d1\u7684\u5730\u65b9\uff0c\u8bf7\u8ba4\u771f\u9605\u8bfb\u4e0b\u8ff0\u5185\u5bb9\uff09<br \/>\n<div id=\"rml_readmorelogin_placeholder\" style=\"position:relative;\"><div id=\"rml_fade_content\" style=\"position: absolute;\r\ntop:-10em;\r\nwidth:100%;\r\nheight:10em;\r\nbackground: -webkit-linear-gradient(rgba(255, 255, 255, 0) 0%,#ffffff 100%);\r\nbackground-image: -moz-linear-gradient(rgba(255, 255, 255, 0) 0%,#ffffff 100%);\r\nbackground-image: -o-linear-gradient(rgba(255, 255, 255, 0) 0%,#ffffff 100%);\r\nbackground-image: linear-gradient(rgba(255, 255, 255, 0) 0%,#ffffff 100%);\r\nbackground-image: -ms-linear-gradient(rgba(255, 255, 255, 0) 0%,#ffffff 100%);\"><\/div><div class=\"wpf-controller aru_rml_from_in_post\" style=\"background-color:#eeeeee;border:5px solid #cce6ff;\" id=\"ARU_ReadMoreLogin_ReadMoreLoginController\"><h2 id=\"Header\">\u67e5\u770b\u66f4\u591a<\/h2><div id=\"Message\"><p>\u8054\u7cfb\u7ba1\u7406\u5458\u5fae\u4fe1tutu19192010\uff0c\u6ce8\u518c\u8d26\u53f7<\/p>\n<\/div><div id=\"StatusBarHeader\"><\/div><form id=\"ARU_ReadMoreLogin_ReadMoreLoginController\"><input name=\"post_id\" value=\"333\" type=\"hidden\"\/><input name=\"_init_callback\" value=\"InitLogin\" type=\"hidden\"\/><input name=\"post_id\" value=\"333\" type=\"hidden\"\/><input name=\"rt_ype\" value=\"1\" type=\"hidden\"\/><input name=\"nonce\" value=\"791f5815f1\" type=\"hidden\"\/><input name=\"_wpnonce\" value=\"b0e6d8f8bf\" type=\"hidden\"\/><input name=\"_controller\" value=\"ARU_ReadMoreLogin\\ReadMoreLoginController\" type=\"hidden\"\/><input name=\"_proxy_controller\" value=\"ARU_ReadMoreLogin\\ReadMoreLoginController\" type=\"hidden\"\/><input name=\"_view\" value=\"ARU_ReadMoreLogin\\ReadMoreLoginView\" type=\"hidden\"\/><table class=\"wpf-table-placeholder\"><tbody class=\"wpf-table-placeholder\"><tr class=\"wpf-table-placeholder\"><td class=\"wpf-table-placeholder-input\" width=\"400px\"><table class=\"wpf-table-placeholder\"><tbody class=\"wpf-table-placeholder\"><tr class=\"wpf-table-placeholder\"><th class=\"wpf-table-placeholder-input\"><label class=\"wpf-label\">Username:<\/label><\/th><\/tr><tr class=\"wpf-table-placeholder\"><td class=\"wpf-table-placeholder-input\"><input class=\"regular-text text_input\" name=\"username\" value=\"\" type=\"text\"\/><\/td><\/tr><tr class=\"wpf-table-placeholder\"><th class=\"wpf-table-placeholder-input\"><label class=\"wpf-label\">Password:<\/label><\/th><\/tr><tr class=\"wpf-table-placeholder\"><td class=\"wpf-table-placeholder-input\"><input class=\"regular-text text_input\" name=\"password\" value=\"\" type=\"password\"\/><\/td><\/tr><\/tbody><\/table><p class=\"wpf-table-placeholder submit\"><button class=\"wp_plugin_framework_ajax_button\" type=\"button\" style=\"background-color:#4D90FE;;color:#ffffff;;border:1px solid #3079ed;\" name=\"_event\" value=\"ButtonLogin\">Log in<\/button><\/p><\/td><td class=\"wpf-table-placeholder-input\"><\/td><\/tr><\/tbody><\/table><\/form><div id=\"ButtonStartRegister\"><a href=\"https:\/\/egonlin.com\/wp-login.php?action=register\">Register<\/a><\/div><div id=\"Link1\"><a href=\"https:\/\/egonlin.com\/wp-login.php?action=lostpassword\">Forgotten username or password?<\/a><\/div><div id=\"StatusBarFooter\"><\/div><\/div><\/div><div id=aru_remaining_content><\/div>","protected":false},"excerpt":{"rendered":"<p>Nginx\u7684Rewrite\u91cd\u5199 \u4e00\u3001\u91cd\u5199\u6a21\u5757\u57fa\u672c\u6982\u8ff0 \u5b98\u65b9\u6587\u6863\uff1ahttps:\/\/nginx.org\/en\/do [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":253,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[21,19,58,22,57,20],"_links":{"self":[{"href":"https:\/\/egonlin.com\/index.php?rest_route=\/wp\/v2\/posts\/333"}],"collection":[{"href":"https:\/\/egonlin.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/egonlin.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/egonlin.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/egonlin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=333"}],"version-history":[{"count":47,"href":"https:\/\/egonlin.com\/index.php?rest_route=\/wp\/v2\/posts\/333\/revisions"}],"predecessor-version":[{"id":11090,"href":"https:\/\/egonlin.com\/index.php?rest_route=\/wp\/v2\/posts\/333\/revisions\/11090"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/egonlin.com\/index.php?rest_route=\/wp\/v2\/media\/253"}],"wp:attachment":[{"href":"https:\/\/egonlin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=333"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/egonlin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=333"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/egonlin.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=333"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}