Solution to sitemap.xml 404
rewrite ^/sitemap(-+([a-zA-Z0-9_-]+))?\. xml$ "/index.php? xml_sitemap=params=$2" last; rewrite ^/sitemap(-+([a-zA-Z0-9_-]+))?\. xml\.gz$ "/index.php? xml_sitemap=params=$2;zip=true" last; rewrite ^/sitemap(-+([a-zA-Z0-9_-]+))?\. html$ "/index.php? xml_sitemap=params=$2;html=true" last; rewrite ^/sitemap(-+([a-zA-Z0-9_-]+))?\. html.gz$ "/index.php? xml_sitemap=params=$2;html=true;zip=true" last;
#rewrite rules for AIOSEOP XML Sitemap rewrite ^/sitemap.xml$ /index.php?aiosp_sitemap_path=root last; rewrite ^/sitemap_(.+)_ (\d+).xml$ /index.php? aiosp_sitemap_path=$1&aiosp_sitemap_page=$2 last; rewrite ^/sitemap_(.+). xml$ /index.php?aiosp_sitemap_path=$1 last; rewrite ^/sitemap.xml.gz$ /index.php?aiosp_sitemap_path=root.gz last; rewrite ^/sitemap_(.+)_ (\d+).xml.gz$ /index.php? aiosp_sitemap_path=$1.gz&aiosp_sitemap_page=$2 last; rewrite ^/sitemap_(.+). xml.gz$ /index.php?aiosp_sitemap_path=$1.gz last;
Nginx pseudo static rule adding method
Other precautions