Custom Post Type Sitemap redirects to homepage

#97651
  • Resolved Aryan Chaurasia
    Rank Math pro

    Hi,
    I’ve created Custom Post Type using the CPT-UI plugin and also enabled sitemap in the RankMath Settings but the sitemap is appearing in Sitemap Index but it is detected by Google Webmaster.

    Webmaster shows error “Your Sitemap appears to be an HTML page. Please use a supported sitemap format instead.”

    Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Alberto
    Rank Math business

    Hello,

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

    It could be caused due to something caching the sitemaps. Are you using any cache plugin?

    If yes, you should add the following cache exceptions:

    /(.*)sitemap(.*).xml
    /(.*)sitemap.xsl

    Looking forward to helping you. Thank you.

    ​​​​​​​

    I’m using WP-Rocket for caching. Add added the above lines in the “never cache” section. WP-Rocket

    Hello,

    Looks like it is working fine now. The sitemap no longer seems to be cached.

    ok, thanks, it’s working now. Google Webmaster successfully crawled the sitemap.

    Hello,

    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

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

The ticket ‘Custom Post Type Sitemap redirects to homepage’ is closed to new replies.