There could be multiple reasons why XML sitemap would show a 404 error. To fix that try the methods below:-
Note: If you are using NGNIX server then you will have to add some rules to the config file
location ~ (([^/]*)sitemap(.*)|news|author|video(.*))\.x(m|s)l$ {
## SiteSEO
rewrite ^.*/sitemaps\.xml$ /index.php?siteseo_sitemap=1 last;
rewrite ^.*/news.xml$ /index.php?siteseo_news=1 last;
rewrite ^.*/video([0-9]+)?.xml$ /index.php?siteseo_video=1&siteseo_paged=$1 last;
rewrite ^.*/author.xml$ /index.php?siteseo_author=1 last;
rewrite ^.*/sitemaps_xsl\.xsl$ /index.php?siteseo_sitemap_xsl=1 last;
rewrite ^.*/sitemaps_video_xsl\.xsl$ /index.php?siteseo_sitemap_video_xsl=1 last;
rewrite ^.*/([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?siteseo_cpt=$1&siteseo_paged=$2 last;
}
If you still face issue using sitemap, you can contact our team at support@siteseo.io we will help you out.