404 error on Yoast XML Sitemap
-
My name is Eddrick and I am having some trouble getting the XML Sitemap to work properly. I continue to receive
404: Page Not Found
Home ? Error 404: Page not found
This page could not be found
on this url https://rhpaschalmd.com/sitemap_index.xmlI have contacted Godaddy and they are no help at all. I have Managed WordPress hosting with Godaddy
Issue seems to be with rewrite rules on the server. I tried to explain this to them but they don’t have clue
I have copied the following code in my .htaccess file but it does not fix the issue
# Yoast SEO – XML Sitemap Rewrite Fix
RewriteEngine On
RewriteBase /
RewriteRule ^sitemap_index.xml$ /index.php?sitemap=1 [L]
RewriteRule ^locations.kml$ /index.php?sitemap=wpseo_local_kml [L]
RewriteRule ^geo_sitemap.xml$ /index.php?sitemap=geo [L]
RewriteRule ^([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?sitemap=$1&sitemap_n=$2 [L]
RewriteRule ^([a-z]+)?-?sitemap.xsl$ /index.php?yoast-sitemap-xsl=$1 [L]
# END Yoast SEO – XML Sitemap Rewrite FixI copied this code in the .htaccess file and it crashed the entire site.
# Rewrites for Yoast SEO XML Sitemap
rewrite ^/sitemap_index.xml$ /index.php?sitemap=1 last;
rewrite ^/([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?sitemap=$1&sitemap_n=$2 last;Just as your help article states on your website this url works to see sitemap
https://rhpaschalmd.com/?sitemap=1
I would greatly appreciate any assistance you can provide
The page I need help with: [log in to see the link]
- The topic ‘404 error on Yoast XML Sitemap’ is closed to new replies.