diff --git a/global/customs/yoast-seo.conf b/global/customs/yoast-seo.conf index 284598f..ccbb3d6 100644 --- a/global/customs/yoast-seo.conf +++ b/global/customs/yoast-seo.conf @@ -1,4 +1,7 @@ #Yoast sitemap +rewrite ^/sitemap_index.xml$ /index.php?sitemap=1 last; +rewrite ^/([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?sitemap=$1&sitemap_n=$2 last; + location ~ ([^/]*)sitemap(.*).x(m|s)l$ { rewrite ^/sitemap.xml$ /sitemap_index.xml permanent; rewrite ^/([a-z]+)?-?sitemap.xsl$ /index.php?xsl=$1 last;