Post-sitemap.xml opening as blank page


#1

hi all. happy new year.

I am using Yoast SEO Plugings and I enabled the sitemap feature, Here is my sitemap link karpress.com/sitemap_index.xml But karpress.com/post-sitemap.xml this link opening blank and not showing any of my post link. Though http://karpress.com/page-sitemap.xml this page sitemap link working perfect. Help me out!

#Yoast sitemap

location ~ ([^/])sitemap(.).x(m|s)l$ { 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&sitemap_n=$2 last;

    ## following lines are options. Needed for wordpress-seo addons
    rewrite ^/news_sitemap\.xml$ /index.php?sitemap=wpseo_news last;
rewrite ^/locations\.kml$ /index.php?sitemap=wpseo_local_kml last;
rewrite ^/geo_sitemap\.xml$ /index.php?sitemap=wpseo_local last;
rewrite ^/video-sitemap\.xsl$ /index.php?xsl=video last;

access_log off;

}


#2

hi, would like to know had this issue solve? i have the same white page and it on multisite subdirectory.

http://domain.com/sitemap_index.xml works fine

http://domain.com/blog/sitemap_index.xml get status 200 http://domain.com/blog/main-sitemap.xsl get status 404


#3

Have you read this article yet?


#4

thanks tyrro, yes, but that is a single wordpress setup rewrite rules. i m using ee 3.6.2 had an default yoast seo sitemap rules in wpcommon.conf / wpcommon-php7.conf rules read as below: rewrite ^/sitemap.xml$ /sitemap_index.xml permanent; rewrite ^/([a-z]+)?-?sitemap.xsl$ /index.php?xsl=$1 last; # Rules for yoast sitemap with wp|wpsubdir|wpsubdomain rewrite ^./sitemap_index.xml$ /index.php?sitemap=1 last; rewrite ^./([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?sitemap=$1&sitemap_n=$2 last;

main site http://domain.com/sitemap_index.xml works fine http://domain.com/blog/main-sitemap.xsl get status 404


#5