Skip to content

Instantly share code, notes, and snippets.

@jdevalk
Created Apr 18, 2013
Embed
What would you like to do?
NGINX rewrites for WordPress SEO XML Sitemaps
# Rewrites for WordPress SEO XML Sitemap
rewrite ^/sitemap_index.xml$ /index.php?sitemap=1 last;
rewrite ^/([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?sitemap=$1&sitemap_n=$2 last;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment