I'm in Nginx ubuntu `18 server in Vultr. I can't view Site map
i'm in Nginx ubuntu `18 server in Vultr. I can't view Site map. I searched about this and found .htaccess solution. but Nginx does not support for that.
Open Nginx Conf file
sudo nano /etc/nginx/nginx.conf
and put this code to it
# Rewrites for XML Sitemap rewrite ^/sitemap_index.xml$ /index.php?sitemap=1 last; rewrite ^/([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?sitemap=$1&sitemap_n=$2 last;