From 2dfdfc99a3ea9f9fb3a54ae3cf4c75b3dd328607 Mon Sep 17 00:00:00 2001 From: Mauricio Wyler Date: Tue, 2 Jul 2019 10:06:32 -0300 Subject: [PATCH] FIX: Customs addons --- global/customs/yoast-seo.conf | 3 +++ 1 file changed, 3 insertions(+) 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;