Sitemap Submission

#375551
  • Resolved Encomendas Online
    Rank Math free

    Hi,
    I have optimized sitemap using RankMath plugin.
    I have tried to submit it in search console but facing an error.
    “Your Sitemap appears to be an HTML page. Use a supported sitemap format.”

    I have submitted the correct xml version i.e. https://art4u.pt/sitemap_index.xml
    because robots.txt file is also not working: https://art4u.pt/robots.txt

    Is there anything, you can help me with?
    I guess it’s something to do with the hosting security?
    Looking forward to your assistance.
    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Anas
    Rank Math business

    Hello,

    Thank you for contacting Rank Math, and sorry for any inconvenience caused.

    I checked the sitemap, it is working fine.

    However, please add this filter in the theme’s functions.php file:

    add_filter( 'rank_math/sitemap/enable_caching', '__return_false');
    

    Here is a guide you can follow to add the filter:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/#functions-php-file

    Once done, clear the cache and resubmit the sitemap in the Search Console.

    Hope that helps.

    Thank you.

    Hi,
    I have placed given function and cleared the cache as well. But the issue same. sitemap is working fine but search console is showing an error.
    please have a look onto screenshot:
    Sitemap error:
    https://ibb.co/9c8kBcv

    Function added in function.php file:
    https://ibb.co/SmKsFST

    Hi, Is there any update for me?
    Looking forward to your response.

    Hello,

    Can you please click on the Sitemap in your GSC account and share the details of the error?

    Looking forward to helping you.

    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 ‘Sitemap Submission’ is closed to new replies.