netominas
By:
netominas

How do I Sitemap run on NGINX wordpress?

November 3, 2014 1.8k views

I tried to generate a sitemap with Yoast SEO plugin wordpress but is in error, which setting I have to do?

tks

3 comments
  • Hi,

    Can you post the exact error that you're getting? Thanks!

  • Did you add the following config to your Nginx virtual host file:

    rewrite ^/sitemap_index\.xml$ /index.php?sitemap=1 last;
    rewrite ^/([^/]+?)-sitemap([0-9]+)?\.xml$ /index.php?sitemap=$1&sitemap_n=$2 last;
    
  • All right. It worked this way, thank you friend.

1 Answer

All right. It worked this way, thank you friend.

Have another answer? Share your knowledge.