Various sitemap errors and issues

#558316
Viewing 9 replies - 1 through 9 (of 9 total)
  • Nigel
    Rank Math business

    Hello,

    Thank you for contacting Rank Math for help with your sitemap showing an error, and sorry for the inconvenience this has caused you.

    Based on fact that https://boden-group.co.uk/main-sitemap.xsl is redirecting to https://boden-group.co.uk/?yoast-sitemap-xsl=main, there is a custom redirect from your main sitemap. Please check your .htaccess file or server config files and remove the custom main-sitemap.xsl redirect.

    Once you have removed the custom redirect, please follow the steps below to flush your sitemap redirects:
    1. Flush the Sitemap cache by following this video screencast:
    https://i.rankmath.com/pipRDp
    2. Exclude the Sitemap files of the Rank Math plugin in your caching plugin. The cache could be via a plugin or from the server. For plugins or Cloudflare, please follow this article:
    https://rankmath.com/kb/exclude-sitemaps-from-caching/

    Hope that helps. Please let us know if you have questions.

    Thanks Nigel

    We most certainly didn’t manually add the redirect. I would have thought this error would be common due to the number of users migrating from Yoast. You can’t say where the redirection would be stored?

    I have checked the .htaccess file but no sign. I have also deleted the Yoast database tables.

    Any point in using the ‘Clean’ function in your plugin tools?

    Hello again

    Another issue, this post type sitemap is giving a 404: https://boden-group.co.uk/team-member-sitemap.xml

    Hell again

    We have turned off Cloudflare and still are having the issues (XLS redirect and CPT sitemap 404)

    Below are the content of the .htaccess file

    
    # BEGIN WordPress
    # The directives (lines) between "BEGIN WordPress" and "END WordPress" are
    # dynamically generated, and should only be modified via WordPress filters.
    # Any changes to the directives between these markers will be overwritten.
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress
    
    # START of Rank Math Sitemap Rewrite Rules
    RewriteEngine On
    RewriteBase /
    RewriteRule ^sitemap_index.xml$ /index.php?sitemap=1 [L]
    RewriteRule ^([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?sitemap=$1&sitemap_n=$2 [L]
    RewriteRule ^([a-z]+)?-?sitemap.xsl$ /index.php?xsl=$1 [L]
    # END of Rank Math Sitemap Rewrite Rules

    Hello,

    The redirect is created by WordPress. Please refer to the sensitive data section for the screenshot. I would suggest please consult from hosting provider whether the redirect is from the server level. If not, then please run this theme / plugin conflict issue.
    Please follow this troubleshooting guide:https://rankmath.com/kb/check-plugin-conflicts/

    About post sitemap giving 404 error, please follow this steps:

    Can you please follow these steps?
    1. Flush the Sitemap cache by following this video screencast:
    https://i.rankmath.com/pipRDp

    2. Exclude the Sitemap files of the Rank Math plugin in your caching plugin. The cache could be via a plugin or from the server. For plugins or Cloudflare, please follow this article:
    https://rankmath.com/kb/exclude-sitemaps-from-caching/

    That should fix the issue.

    Please let us know if that does not. We are here to assist.

    Thanks but the Site Health plugin doesn’t work, I keep getting kicked back out to the dashboard with all plugins active so am unable to troubleshoot

    > The redirect is created by WordPress. Please refer to the sensitive data section for the screenshot.
    I don’t know what you mean. What screenshot shows it is created by WordPress?

    We have caching disabled and I have flushed the sitemap cache (step 1 above) but the CPT sitemap still gives a 404

    Hello,

    If the troubleshooting plugin is not working on your site, we would suggest creating a staging site and replicating the issue so you can disable plugins or switch themes without affecting your live site.

    Here is a guide that could be really useful for you on how to create a staging site: https://www.wpbeginner.com/wp-tutorials/how-to-create-staging-environment-for-a-wordpress-site/

    What screenshot shows it is created by WordPress?

    The screenshot is added in the last line of the sensitive data section. You’ll also see the X-Redirect-By which means that WordPress redirects the URL of the sitemap.

    Please check also check your website root directory for any XML sitemaps as Rank Math’s sitemaps are generated virtually so there shouldn’t be any existing sitemap files in your files.

    Let us know how this goes.

    Thank you.

    Thank you, we managed to find the Yoast redirect in the server config and remove it and now our sitemap index displays correctly

    Hello,

    We are glad it worked for you.

    If you have any other concerns, please don’t hesitate to contact us anytime to assist you further.

    Looking forward to helping you.

    Thank you.

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

The ticket ‘Various sitemap errors and issues’ is closed to new replies.