Incorrect http header content-type: “text/html; charset=UTF-8” !! Help me !!

#937131
Viewing 7 replies - 1 through 7 (of 7 total)
  • Hello,

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

    You should check the sitemap URL in the XML Validator tool, not your website URL:

    We checked your sitemap and we can see it is working properly without any issues. In this case, please try to follow the steps below and see if that works for you:

    1. Flush the Sitemap cache by following this video screencast:
    https://i.rankmath.com/pipRDp

    2. Exclude the Sitemap files of the Rank Math plugin in your caching plugin. The cache could be via a plugin or from the server. For plugins or Cloudflare, please follow this article:
    https://rankmath.com/kb/exclude-sitemaps-from-caching/

    Once done, clear your website cache, remove all the submitted sitemap, and resubmit only the /sitemap_index.xml in the Search Console.

    However, it looks like you’re currently using the Rank Math PRO plugin on your websites, but the account you have used to open this ticket is the Rank Math free version.

    Please search and forward a receipt from FastSpring.com so we can locate your account and verify it.

    Let us know how it goes. Looking forward to helping you.

    I’ve checked the URL you provided, and as shown in the image, I found “noindex” in the HTTP header of the “X-Robots-Tag”. I’ve already edited the .htaccess file as follows, but it’s still not working. I’d like you to help me check if the error is coming from this plugin. https://imgur.com/a/UJG9Acg

    Thanks you

    # BEGIN WordPress

    <IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteBase /
        RewriteRule ^index\.php$ – [L]
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    # Specify the MIME type for XML files
    AddType application/xml .xml

    # Force correct Content-Type for sitemap.xml
    <FilesMatch “sitemap\.xml$”>
        ForceType application/xml
    </FilesMatch>

    # Cache control for XML, RSS, and Atom feeds (ปรับปรุงแล้ว)
    <IfModule mod_headers.c>
      <FilesMatch “\.(xml|rss|atom)$”>
        Header set Cache-Control “no-cache, max-age=0” # ป้องกันการแคชอย่างสมบูรณ์ หรือ
        # Header set Cache-Control “public, max-age=3600” # แคช 1 ชั่วโมง
      </FilesMatch>
    </IfModule>

    # X-Robots-Tag for various file types (ปรับปรุงแล้ว)
    <IfModule mod_headers.c>
      <Files ~ “\.(pdf|jpg|jpeg|png|gif|svg|docx|xlsx|txt)$”>
        Header set X-Robots-Tag “index, follow”
      </Files>
    </IfModule>

    Following point 1, I’ve already tried it. https://imgur.com/a/qa4Le7V

    Following point 2, I’ve already tried it. https://imgur.com/a/Nur1PGR

    Following point 3, I’ve already tried it.
    However, when I submit /sitemap_index.xml to my Google Search Console, it still cannot fetch the data as shown in the picture. What are the solutions?

    I hired a freelancer on Fiverr for a website project (as pictured), but I’m having trouble locating the developer’s email. This is an issue because I’ll be responsible for the site’s ongoing maintenance after it’s delivered https://imgur.com/a/Uq3oAF8

    A broken plugin is causing severe damage to my website. As I previously inquired in this thread: https://support.rankmath.com/ticket/incorrect-http-header-content-type-text-html-charsetutf-8-help-me, I haven’t stopped investigating the damage. I’ve received definitive answers from my hosting provider and Plesk Support Engineer, as shown in the attached images. Experts have confirmed that the damage is not caused by me but by your plugin, as shown in the images

    https://imgur.com/a/v84bVqP
    https://imgur.com/a/LueCP8T
    https://imgur.com/a/DOWkxIs
    https://imgur.com/a/Ka8xIlZ

    Hello,

    That URL of the sitemap of the website should return a noindex status code because you wouldn’t want to index the sitemaps from your website, but rather only the pages that are inside the sitemap.

    That directive on the sitemap prevents it from appearing on SERPs but it doesn’t prevent Google from crawling the pages on it and indexing them.

    If you test any sitemap, even from big websites you’ll see that all of them use this directive to be sure it’s not getting included on SERPs.

    Even our own sitemap includes that:
    Sitemap

    To submit the sitemap to the correct place on GSC you should follow the steps in this tutorial: https://rankmath.com/kb/submit-sitemap-to-google/

    The only reason you would receive an issue with the content type headers is if you have the sitemap being cached and to prevent that we recommend the transient method from the tutorial we shared previously on how to prevent the caching of the sitemap.

    Don’t hesitate to get in touch if you have any other questions.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    As we already mentioned it is absolutely fine if your sitemap is set to Noindex. From the SEO perspective, your sitemap doesn’t have any content value that you want to index on Google’s SERPs and show you visitors.

    A sitemap is just a file that lists all the important pages of a website to help search engines like Google understand its structure and content which Google can easily crawl even if it is set to Noindex.

    If you submit your sitemap on Google Search Console’s Sitemap section and Google can fetch that then there is nothing to worry about that.

    Regarding the Yoast, if you check their sitemap, you’ll see it is also set to Noindex:

    Hope that helps and please don’t hesitate to let us know if you have any other questions.
     
    Thank 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 7 replies - 1 through 7 (of 7 total)

The ticket ‘Incorrect http header content-type: “text/html; charset=UTF-8” !! Help me !!’ is closed to new replies.