regarding nginx reqrite rule for sitemap
-
Hi,
can somebody confirm me that i have written the rewrite correct or not?#Yoast sitemap location ~ ([^/]*)sitemap(.*)\.x(m|s)l$ { rewrite ^/sitemap_index\.xml$ /index.php?sitemap=1 last; rewrite ^/([^/]+?)-sitemap([0-9]+)?\.xml$ /index.php?sitemap=$1&sitemap_n=$2 last; }
thanks in advance
- The topic ‘regarding nginx reqrite rule for sitemap’ is closed to new replies.