Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Rank Math Support

    (@rankmathsupport)

    Hello @akiraanastasia,
    ?
    Thank you for contacting Rank Math support.
    ?
    The sitemap is one of the most important pieces in your website’s SEO puzzle as it helps search engines navigate your website and helps search engines to easily discover your content.
    ?
    Redirecting it to your homepage can cause crawling issues on your site to get indexed.
    ?
    However, you can change your sitemap base to submit to your GSC instead:
    https://rankmath.com/kb/filters-hooks-api-developer/#modify-sitemap-index-slug
    ?
    Looking forward to helping you.

    Thread Starter akiraanastasia

    (@akiraanastasia)

    Hi team, please explain more about changing sitemap base to submit to GSC instead. Also tell, setting of Logo for Google is actually Favicon?? It also appears on all Apple devices etc?

    Plugin Support Rank Math Support

    (@rankmathsupport)

    Hello @akiraanastasia,
    ?
    The filter should be modified like this:
    ?
    /** * Filter: 'rank_math/sitemap/index_slug' - Modify the sitemap index slug. * * @param string $slug Sitemap index slug. * * @return string */ add_filter( 'rank_math/sitemap/index/slug', function($slug) { return 'my-custom-sitemap'; //change the name here }, 10, 1 );
    ?
    Once done, please follow these steps to flush your sitemap cache:
    https://i.rankmath.com/pipRDp
    ?
    The filter above will make your sitemap URL like:
    https://yourwebsite.com/my-custom-sitemap.xml
    ?
    You can change the “my-custom-sitemap” part in the code for your desired sitemap slug.
    ?
    Also, yes, the small logo that appears in your search results is called Favicon. However, Rank Math is not responsible for controlling the?favicon?that appears on your website. Usually, that’s built into the theme options.
    ?
    You can also check the guidelines that Google has for that here:?https://developers.google.com/search/docs/appearance/favicon-in-search
    ?
    Looking forward to helping you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.