{"id":4571,"date":"2020-01-05T12:21:15","date_gmt":"2020-01-05T04:21:15","guid":{"rendered":"https:\/\/blog.naibabiji.com\/?p=4571"},"modified":"2023-07-11T15:14:31","modified_gmt":"2023-07-11T07:14:31","slug":"rank-math-index_sitemap-xml-404","status":"publish","type":"post","link":"https:\/\/blog.naibabiji.com\/skill\/rank-math-index_sitemap-xml-404.html","title":{"rendered":"Rank Math\u7ad9\u70b9\u5730\u56fe\u6587\u4ef6index_sitemap.xml 404\u9519\u8bef\u89e3\u51b3\u529e\u6cd5"},"content":{"rendered":"<p><a href=\"https:\/\/blog.naibabiji.com\/tutorial\/rank-math.html\">Rank Math<\/a>\u662f\u5976\u7238\u73b0\u5728\u4f7f\u7528\u7684SEO\u63d2\u4ef6\uff0c\u81ea\u5e26\u4e86sitemap\u7ad9\u70b9\u5730\u56fe\u7684\u529f\u80fd\uff0c\u4eca\u5929\u5728\u7ed9\u4e00\u4e2a\u5ba2\u6237\u914d\u7f6e\u7684\u65f6\u5019\u53d1\u73b0index_sitemap.xml\u8bbf\u95ee\u63d0\u793a404\u9519\u8bef\u3002\u8bb0\u5f55\u4e00\u4e0b\u89e3\u51b3\u529e\u6cd5\u3002<\/p>\n<p><strong>\u51fa\u73b0\u8fd9\u4e2a\u95ee\u9898\u901a\u5e38\u90fd\u662f\u4f2a\u9759\u6001\u6ca1\u6709\u914d\u7f6e\u597d\u5bfc\u81f4\u7684<\/strong>\uff0c\u53ea\u9700\u8981\u628a\u4e0b\u9762\u7684\u89c4\u5219\u6dfb\u52a0\u5230\u865a\u62df\u4e3b\u673a\u7684\u914d\u7f6e\u6587\u4ef6\u91cc\u9762\u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n<p>Nginx\u7684\u914d\u7f6e\u5982\u4e0b\uff1a<\/p>\n<pre class=\"wp-block-preformatted\"># START Nginx Rewrites for Rank Math Sitemaps\nrewrite ^\/sitemap_index.xml$ \/index.php?sitemap=1 last;\nrewrite ^\/([^\/]+?)-sitemap([0-9]+)?.xml$ \/index.php?sitemap=$1&amp;sitemap_n=$2 last;\nrewrite ^\/([a-z]+)?-sitemap\\.xsl$ \/index.php?xsl=$1 last;\n# END Nginx Rewrites for Rank Math Sitemaps<\/pre>\n<p>Apache\u7684\u914d\u7f6e\u5982\u4e0b\uff1a<\/p>\n<pre># START of Rank Math Sitemap Rewrite Rules\nRewriteEngine On\nRewriteBase \/\nRewriteRule ^sitemap_index.xml$ \/index.php?sitemap=1 [L]\nRewriteRule ^([^\/]+?)-sitemap([0-9]+)?.xml$ \/index.php?sitemap=$1&amp;sitemap_n=$2 [L]\nRewriteRule ^([a-z]+)?-?sitemap.xsl$ \/index.php?xsl=$1 [L]\n# END of Rank Math Sitemap Rewrite Rules<\/pre>\n<p>\u540c\u6837\u7684\u95ee\u9898\uff1a<\/p>\n<ul>\n<li><a href=\"https:\/\/blog.naibabiji.com\/skill\/all-in-one-seo-pack-sitemap-xml-404.html\">All in One SEO Pack\u63d2\u4ef6sitemap.xml 404\u7684\u89e3\u51b3\u529e\u6cd5<\/a><\/li>\n<\/ul>\n\n\n<div class=\"kk-star-ratings kksr-auto kksr-align-center kksr-valign-bottom\"\n    data-payload='{&quot;align&quot;:&quot;center&quot;,&quot;id&quot;:&quot;4571&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;17&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;2.2&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;4&quot;,&quot;greet&quot;:&quot;\u7ed9\u672c\u6587\u6253\u5206 post&quot;,&quot;legend&quot;:&quot;2.2\\\/5 - (17 votes)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;title&quot;:&quot;Rank Math\u7ad9\u70b9\u5730\u56fe\u6587\u4ef6index_sitemap.xml 404\u9519\u8bef\u89e3\u51b3\u529e\u6cd5&quot;,&quot;width&quot;:&quot;59.6&quot;,&quot;_legend&quot;:&quot;{score}\\\/{best} - ({count} {votes})&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}'>\n            \n<div class=\"kksr-stars\">\n    \n<div class=\"kksr-stars-inactive\">\n            <div class=\"kksr-star\" data-star=\"1\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"2\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"3\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"4\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"5\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n    \n<div class=\"kksr-stars-active\" style=\"width: 59.6px;\">\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n                \n\n<div class=\"kksr-legend\" style=\"font-size: 19.2px;\">\n            2.2\/5 - (17 votes)    <\/div>\n    <\/div>\n","protected":false},"excerpt":{"rendered":"<p>Rank Math\u662f\u5976\u7238\u73b0\u5728\u4f7f\u7528\u7684SEO\u63d2\u4ef6\uff0c\u81ea\u5e26\u4e86sitemap\u7ad9\u70b9\u5730\u56fe\u7684\u529f\u80fd\uff0c\u4eca\u5929\u5728\u7ed9\u4e00\u4e2a\u5ba2\u6237\u914d\u7f6e\u7684\u65f6\u5019\u53d1 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2095,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"Rank Math\u7ad9\u70b9\u5730\u56fe\u6587\u4ef6index_sitemap.xml 404\u9519\u8bef\u89e3\u51b3\u529e\u6cd5 - \u5976\u7238\u5efa\u7ad9\u7b14\u8bb0","description":"Rank Math \u662f\u5976\u7238\u73b0\u5728\u4f7f\u7528\u7684SEO\u63d2\u4ef6\uff0c\u81ea\u5e26\u4e86sitemap\u7ad9\u70b9\u5730\u56fe\u7684\u529f\u80fd\uff0c\u4eca\u5929\u5728\u7ed9\u4e00\u4e2a\u5ba2\u6237\u914d\u7f6e\u7684\u65f6\u5019\u53d1\u73b0index_sitemap.xml\u8bbf\u95ee\u63d0\u793a404\u9519\u8bef\u3002\u8bb0\u5f55\u4e00\u4e0b\u89e3\u51b3\u529e\u6cd5\u3002 \u51fa\u73b0\u8fd9\u4e2a\u95ee\u9898\u901a\u5e38\u90fd\u662f\u4f2a\u9759\u6001\u6ca1\u6709\u914d\u7f6e\u597d\u5bfc\u81f4\u7684 \uff0c\u53ea\u9700\u8981\u628a\u4e0b\u9762\u7684\u89c4\u5219\u6dfb\u52a0\u5230\u865a\u62df\u4e3b\u673a\u7684\u914d\u7f6e\u6587\u4ef6\u91cc\u9762\u5c31\u53ef\u4ee5\u4e86\u3002 Nginx\u7684\u914d\u7f6e\u5982\u4e0b\uff1a Ap"},"footnotes":""},"categories":[142],"tags":[],"class_list":["post-4571","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-skill"],"_links":{"self":[{"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/posts\/4571","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/comments?post=4571"}],"version-history":[{"count":0,"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/posts\/4571\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/media\/2095"}],"wp:attachment":[{"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/media?parent=4571"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/categories?post=4571"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/tags?post=4571"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}