Home » XML Sitemap returns a 404 error
XML Sitemap returns a 404 error

There could be multiple reasons why XML sitemap would show a 404 error. To fix that try the methods below:-

  • Go to SiteSEO in your WordPress admin --> Sitemap --> Flush Permalink button.
  • In your WordPress admin go to Settings --> Permalink, you don't need to save, loading that page flush the permalinks.
  • Deactivate any cache plugin you have and see if doing that fixes the issue
  • Make sure you have not enabled Maintenance mode, Sitemap won't work in maintenance mode

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.

    Was this page helpful?
    Newsletter Subscription
    Subscribing you to the mailing list