• Hi, we had recently renewed hosting and domain and the sitemap has an error since then. Please guide. Thanks in advance.

    Error: Incorrect http header content-type: “text/html; charset=UTF-8” (expected: “application/xml”)

    • This topic was modified 1 year, 5 months ago by Yui. Reason: redundant link(s) deleted

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Please include a link to the sitemap where you are experiencing the issue. Also, how is the sitemap created? e.g. on the fly by a plugin, or manually

    Note that your robots.txt file states that the sitemap can be found at https://nayakem.com/wp-sitemap.xml, but that URL opens the blog page rather than the sitemap.

    • This reply was modified 1 year, 5 months ago by barnez. Reason: Add details of sitemap URL in robots.txt file
    Thread Starter nyk2019

    (@nyk2019)

    Thank you Barnez. The sitemap was created for us by an agency. It’s https://nayakem.com/sitemap_index.xml

    I did my research and found out the link you’ve mentioned yesterday. It did redirect me to the blog page. Can you tell me if it’s an server error or would changing the sitemap url resolve the issue? How exactly can we try and resolve it?

    Thread Starter nyk2019

    (@nyk2019)

    Google console cites this error as:

    ‘The url is html’ . It was working fine and I’m wondering what happened between expiry and renewal.

    You have 2 options: either contact the agency your used to ask why this is happening, or troubleshoot yourself.

    To troubleshoot, first try and identify how the sitemap is being served, which will be either dynamically on the fly by a plugin (check the plugins list) or with a fixed sitemap_index.xml file located in the root of the site on the server, at the same level as wp-config.php, etc. (look for the file by using the file manager in the control panel (e.g. cPanel) provided by your host).

    If there is a sitemap generating plugin installed (e.g. XML Sitemap Generator for Google), contact their support through the www.ads-software.com plugin support forum for help. If there is a fixed file in the root of the site, install the Health Check & Troubleshooting plugin, enter troubleshooting mode (which will disable all plugins and enable a WordPress theme for logged in users only) and test the sitemap URL. If it returns the sitemap page in XML format, then enable the plugins and theme one by one, testing each time, until you identify the conflicting extension. After that, check the settings of that plugin/theme, and or seek dedicated support from the plugin/theme support forum.

    Good luck!

    Thread Starter nyk2019

    (@nyk2019)

    Noted. I’ll check and see what happens.

    Thank you

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Sitemap error’ is closed to new replies.