Yoast SEO – requires rewrite for XML Sitemap?
I am trying to use WordPress SEO optimisation by Yoast. When I ask the plug-in to automatically generate a XML Sitemap, I am presented with the following message:
As you’re on NGINX, you’ll need the following rewrites:
rewrite ^/sitemap_index\.xml$ /index.php?sitemap=1 last;
rewrite ^/([^/]+?)-sitemap([0-9]+)?\.xml$ /index.php?sitemap=$1&sitemap_n=$2 last;
I was wondering if anyone could tell me in which file/document I would place these rewrites? What I would be rewriting?
I am new to webs development, and do not really know that much.
- The topic ‘Yoast SEO – requires rewrite for XML Sitemap?’ is closed to new replies.