In sitemap page_sitemap.xml 404 error.

#35377
  • Resolved Roland Hembach
    Rank Math free

    I use Elementor Page Builder.
    I’ve checked the pages the home page is indexable, the others contain the noindex,nofollow attributes as I set.
    I’ve resave the Permalinks in WP -> Settings -> Permalink.
    I’ve rechecked and resaved RankMath options, everything looks properly.
    I’ve disable all cache plugin and service and security plugin.

    The sitemap_index.xml load properly, only the page_sitemap.xml not.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    We are checking this problem and we will be in touch in a short while.

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Todd
    Rank Math free

    Hi Roland,

    Thanks for getting in touch with us.

    Please add at least one non-home page to your website without the noindex tag so that the page sitemap works. You only have one page indexable and that is your homepage which is why the sitemap isn’t finding any indexable non-home page to include in the page-sitemap.xml file.

    In the meantime, we are noting this down for improvement.

    Please do not hesitate to let us know if you need our assistance with anything else.

    Dear Todd,

    Maybe later I would like to made a blog and some post, but now I only would like use my home page, without any other non-home page. The sitemap MUST contain the home page, even though there are no other subpage, so please privide a solution or an update.
    I tried two other XML sitemap generator they included the homepage, but the noindex pages also:
    https://wordpress.org/plugins/google-sitemap-generator/
    https://wordpress.org/plugins/xml-sitemap-feed/
    Can this caused by your plugin too?

    Todd
    Rank Math free

    Hi Roland,

    Please use this code in your theme’s functions.php file:

    add_action( 'rank_math/sitemap/page_content', function() {
        return '<url>
    		    <loc>https://your-home-page.com/</loc>
    		    <lastmod>2020-03-07T18:02:24+00:00</lastmod>
    	    </url>';
    });

    That should do the trick.

    Let me know if it doesn’t work.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

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

The ticket ‘In sitemap page_sitemap.xml 404 error.’ is closed to new replies.