|
/ Documentation /Sitemaps/ Change the Sitemap URL in SureRank

Change the Sitemap URL in SureRank

What this does

This updates your sitemap’s URL (slug) with a SureRank filter. No core plugin edits required.

Before you begin

  • Ensure SureRank’s sitemap feature is enabled.
  • Have access to WordPress admin and either theme files or a code snippets tool.

Step 1: Add the filter

Paste the code into one of these:

  • Child theme → functions.php
  • Code Snippets plugin → new snippet (run on the frontend)
// Change the SureRank sitemap slug to your preferred name
add_filter( 'surerank_sitemap_slug', function( $slug ) {
    return 'your-sitemap-name'; // Replace with your preferred sitemap name
} );

Step 2: Verify the new URL

  • Open https://yourdomain.com/seo-sitemap.xml (replace with your slug).
  • Confirm the sitemap loads without errors.

Step 3: Update Google Search Console

  • Go to Google Search Console → Sitemaps.
  • Submit the new sitemap URL (e.g., /seo-sitemap.xml).
  • Remove the old sitemap if it was previously submitted.

Troubleshooting

  • 404 error: Clear caching (plugin/server/CDN) and re-save permalinks.
  • Duplicate sitemaps: Disable sitemaps in other SEO plugins.
  • Slug issues: Use only lowercase letters, numbers, and hyphens. Avoid spaces and special characters.
Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

Need help? Contact Support
On this page
Scroll to Top