{"id":16424573,"date":"2024-11-20T12:30:14","date_gmt":"2024-11-20T12:30:14","guid":{"rendered":"https:\/\/wpml.org\/faq\/%e5%a6%82%e4%bd%95%e8%b0%83%e6%95%b4-nginx-%e7%bd%91%e7%ab%99%e7%9a%84%e6%9c%8d%e5%8a%a1%e5%99%a8%e8%ae%be%e7%bd%ae%ef%bc%9f\/"},"modified":"2024-11-20T12:30:21","modified_gmt":"2024-11-20T12:30:21","slug":"%e5%a6%82%e4%bd%95%e8%b0%83%e6%95%b4-nginx-%e7%bd%91%e7%ab%99%e7%9a%84%e6%9c%8d%e5%8a%a1%e5%99%a8%e8%ae%be%e7%bd%ae%ef%bc%9f","status":"publish","type":"faq","link":"https:\/\/wpml.org\/zh-hans\/faq\/%e5%a6%82%e4%bd%95%e8%b0%83%e6%95%b4-nginx-%e7%bd%91%e7%ab%99%e7%9a%84%e6%9c%8d%e5%8a%a1%e5%99%a8%e8%ae%be%e7%bd%ae%ef%bc%9f\/","title":{"rendered":"\u5982\u4f55\u8c03\u6574 NGINX \u7f51\u7ad9\u7684\u670d\u52a1\u5668\u8bbe\u7f6e\uff1f"},"content":{"rendered":"\n<p class=\"lead\">\u4e86\u89e3\u5982\u4f55\u4fee\u590d\u4ee5\u8f85\u52a9\u8bed\u8a00\u67e5\u770bWordPress \u767b\u5f55\u9875\u9762\u65f6\u51fa\u73b0\u7684 404 \u9519\u8bef\u3002  <\/p>\n\n<p>\u5982\u679c\u60a8\u7684\u7f51\u7ad9\u4f7f\u7528 NGINX\uff0c\u4e14<a href=\"https:\/\/wpml.org\/documentation\/getting-started-guide\/language-setup\/language-url-options\/\">\u8bed\u8a00 URL \u683c\u5f0f<\/a>\u8bbe\u7f6e\u4e3a<strong>\u76ee\u5f55\u4e2d\u7684\u4e0d\u540c\u8bed\u8a00<\/strong>\uff0c\u5219\u5728\u5c1d\u8bd5\u4ee5\u7b2c\u4e8c\u8bed\u8a00\u8bbf\u95ee\u767b\u5f55\u6216\u6ce8\u518c\u9875\u9762\u65f6\u53ef\u80fd\u4f1a\u51fa\u73b0 404 \u9519\u8bef\u3002  <\/p>\n\n<p>\u4e3a\u907f\u514d\u51fa\u73b0\u6b64\u9519\u8bef\uff0c\u60a8\u9700\u8981\u8c03\u6574 NGINX \u8bbe\u7f6e\u3002<\/p>\n\n<h2 class=\"wp-block-heading\">\u5982\u4f55\u8c03\u6574 NGINX \u8bbe\u7f6e\uff1f<\/h2>\n\n<p>\u7531\u4e8e NGINX \u65e0\u6cd5\u8bbf\u95ee<strong>htaccess<\/strong>\u6587\u4ef6\uff0c\u56e0\u6b64\u9700\u8981\u5728 NGINX \u8bbe\u7f6e\u4e2d\u6dfb\u52a0\u4ee5\u4e0b<a href=\"https:\/\/blog.nginx.org\/blog\/creating-nginx-rewrite-rules\/\" target=\"_blank\" rel=\"noreferrer noopener\">\u91cd\u5199\u89c4\u5219<\/a>\uff1a  <\/p>\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nrewrite ^\/xx\/wp-login.php \/wp-login.php break;\n<\/pre><\/div>\n<p>\u4f8b\u5982\uff0c\u5982\u679c\u60a8\u7684\u7f51\u7ad9\u4f7f\u7528\u82f1\u8bed\u3001\u5fb7\u8bed\u548c\u6cd5\u8bed\uff0c\u90a3\u4e48 NGINX \u7684\u89c4\u5219\u5c31\u662f\u8fd9\u6837\uff1a<\/p>\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nrewrite ^\/en\/wp-login.php \/wp-login.php break;\nrewrite ^\/de\/wp-login.php \/wp-login.php break;\nrewrite ^\/fr\/wp-login.php \/wp-login.php break;\n<\/pre><\/div>","protected":false},"excerpt":{"rendered":"<p>\u60a8\u53ef\u4ee5\u901a\u8fc7\u5728 NGINX \u8bbe\u7f6e\u4e2d\u6dfb\u52a0\u91cd\u5199\u89c4\u5219\u6765\u8c03\u6574\u670d\u52a1\u5668\u8bbe\u7f6e\u3002  <\/p>\n","protected":false},"author":578773,"featured_media":0,"menu_order":0,"template":"","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"_uag_custom_page_level_css":"","ep_exclude_from_search":false,"footnotes":""},"faq-category":[26201],"class_list":["post-16424573","faq","type-faq","status-publish","hentry","faq-category-error-messages-zh-hans"],"spectra_custom_meta":{"_subscription_coupon_product_id":["0"],"_wpv_contains_gutenberg_views":[""],"_alp_processed":["1732105821"],"_views_template":["0"],"_wpml_media_duplicate":["1"],"_wpml_media_featured":["1"],"_yoast_wpseo_metadesc":["\u4e86\u89e3\u5982\u4f55\u4fee\u590d\u4ee5\u8f85\u52a9\u8bed\u8a00\u67e5\u770bWordPress \u767b\u5f55\u9875\u9762\u65f6\u51fa\u73b0\u7684 404 \u9519\u8bef\u3002"],"_last_translation_edit_mode":["translation-editor"],"_wpml_word_count":["163"],"_uag_css_file_name":["uag-css-16424573.css"]},"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"gform-image-choice-sm":false,"gform-image-choice-md":false,"gform-image-choice-lg":false,"woocommerce_thumbnail":false,"woocommerce_single":false,"woocommerce_gallery_thumbnail":false},"uagb_author_info":{"display_name":"Tomer Helzer","author_link":"https:\/\/wpml.org\/zh-hans\/author\/tomer-h\/"},"uagb_comment_info":0,"uagb_excerpt":"\u60a8\u53ef\u4ee5\u901a\u8fc7\u5728 NGINX \u8bbe\u7f6e\u4e2d\u6dfb\u52a0\u91cd\u5199\u89c4\u5219\u6765\u8c03\u6574\u670d\u52a1\u5668\u8bbe\u7f6e\u3002","_links":{"self":[{"href":"https:\/\/wpml.org\/zh-hans\/wp-json\/wp\/v2\/faq\/16424573","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpml.org\/zh-hans\/wp-json\/wp\/v2\/faq"}],"about":[{"href":"https:\/\/wpml.org\/zh-hans\/wp-json\/wp\/v2\/types\/faq"}],"author":[{"embeddable":true,"href":"https:\/\/wpml.org\/zh-hans\/wp-json\/wp\/v2\/users\/578773"}],"version-history":[{"count":1,"href":"https:\/\/wpml.org\/zh-hans\/wp-json\/wp\/v2\/faq\/16424573\/revisions"}],"predecessor-version":[{"id":16424574,"href":"https:\/\/wpml.org\/zh-hans\/wp-json\/wp\/v2\/faq\/16424573\/revisions\/16424574"}],"wp:attachment":[{"href":"https:\/\/wpml.org\/zh-hans\/wp-json\/wp\/v2\/media?parent=16424573"}],"wp:term":[{"taxonomy":"faq-category","embeddable":true,"href":"https:\/\/wpml.org\/zh-hans\/wp-json\/wp\/v2\/faq-category?post=16424573"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}