title: XML sitemap goes to 404 page
body: <p>I have installed wpseo by yoast and it doesn't list all the links inside sitemap.
  It just only indexing the xml sitemap.</p>
  
  <p>for eg:</p>
  
  <pre><code>http://domain.com/sitemap_index.xml list the following xml files.
  When i click any one of the following xml file it goes to 404 page.
  
  http://domain.com/post-sitemap.xml
  http://domain.com/page-sitemap.xml
  </code></pre>
  
  <p>The following is my nginx config:</p>
  
  <pre><code>rewrite ^/sitemap\.xml$ /sitemap_index.xml permanent;
  rewrite ^/([a-z]+)?-?sitemap\.xsl$ /index.php?xsl=$1 last;
  rewrite ^/sitemap_index\.xml$ /index.php?sitemap=1 last;
  rewrite ^/([^/]+?)-sitemap([0-9]+)?\.xml$ /index.php?sitemap=$1&amp;sitemap_n=$2 last;
  </code></pre>
  
  <p>Reference: </p>
  
  <p><a href="http://kb.yoast.com/article/16-my-sitemap-is-giving-a-404-error-what-should-i-do" rel="nofollow">http://kb.yoast.com/article/16-my-sitemap-is-giving-a-404-error-what-should-i-do</a></p>
  
  <p><a href="http://kb.yoast.com/article/123-xml-sitemap-errors" rel="nofollow">http://kb.yoast.com/article/123-xml-sitemap-errors</a></p>
  
  <p><a href="http://www.wpbeginner.com/wp-tutorials/how-to-fix-yoasts-wordpress-seo-sitemap-404-error/" rel="nofollow">http://www.wpbeginner.com/wp-tutorials/how-to-fix-yoasts-wordpress-seo-sitemap-404-error/</a></p>
  
  <p><a href="http://kb.yoast.com/article/96-enable-xml-sitemaps-in-the-wordpress-seo-plugin" rel="nofollow">http://kb.yoast.com/article/96-enable-xml-sitemaps-in-the-wordpress-seo-plugin</a></p>