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

#937131
Viewing 2 replies - 1 through 2 (of 2 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>

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

You must be logged in to reply to this ticket.