Question

How do I Sitemap run on NGINX wordpress?

  • Posted November 3, 2014

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

tks

Subscribe
Share

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

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;

Hi,

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


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

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