• Resolved jwunmalumni

    (@jwunmalumni)


    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.xml

    I 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 Fix

    I 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]

Viewing 4 replies - 1 through 4 (of 4 total)
  • @jwunmalumni The error you receive on your sitemap can be caused by a number of issues, including the permalinks or rewrite rules. We would first recommend to try resetting the permalink structure in WordPress which can be done by performing the following steps:

      Login to WordPress
      Go to Settings>Permalinks
      Clicking ‘Save Changes’ without making any modifications
    Thread Starter jwunmalumni

    (@jwunmalumni)

    I already reset the Permalinks and this didn’t resolve the issue

    Hello!

    Your sitemap looks fine now. See image here.

    We are going ahead and marking this issue as resolved due to inactivity. If you require any further assistance please create a new issue.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘404 error on Yoast XML Sitemap’ is closed to new replies.