-
Subject: X-Robots-Tag: noindex header on sitemap despite .htaccess forcing index
Hi Hostinger support,
My site nomadwallets.com has a sitemap (https://nomadwallets.com/post-sitemap.xml) returning X-Robots-Tag: noindex in the HTTP headers. This is blocking Google from indexing the sitemap.
Details:
“Discourage search engines” in WordPress is OFF.
.htaccess explicitly sets index, follow for all sitemap XML files:
<IfModule mod_headers.c>
<FilesMatch “.*sitemap.*\.xml$”>
Header unset X-Robots-Tag
Header set X-Robots-Tag “index, follow”
</FilesMatch>
</IfModule>Even with all plugins deactivated except Rank Math, the noindex header remains.
This suggests that the header is being added at the server level (possibly by LiteSpeed or another Hostinger config) before .htaccess takes effect.
Can you please check if LiteSpeed or server rules in my hosting environment are injecting X-Robots-Tag: noindex for sitemap URLs and remove it?
Here’s the header output from curl -I for reference:
[curl -I https://nomadwallets.com/post-sitemap.xml
HTTP/1.1 200 OK
Connection: Keep-Alive
Keep-Alive: timeout=5, max=100
x-powered-by: PHP/8.2.27
x-robots-tag: noindex
content-type: text/xml; charset=UTF-8
pragma: public
cache-control: no-cache, no-store, must-revalidate, max-age=0
expires: 0
platform: hostinger
panel: hpanel
content-security-policy: upgrade-insecure-requests
strict-transport-security: max-age=31536000; includeSubDomains; preload
x-frame-options: SAMEORIGIN
x-content-type-options: nosniff
referrer-policy: strict-origin-when-cross-origin
permissions-policy: geolocation=(), microphone=(), camera=()
x-litespeed-tag: f51_
date: Tue, 12 Aug 2025 19:29:28 GMT
server: LiteSpeed
x-qc-pop: AS-IN-DEL-59
alt-svc: h3=”:443″; ma=2592000, h3-29=”:443″; ma=2592000, h3-Q050=”:443″; ma=2592000, h3-Q046=”:443″; ma=2592000, h3-Q043=”:443″; ma=2592000, quic=”:443″; ma=2592000; v=”43,46″]Thanks,
[Tushar]
You must be logged in to reply to this ticket.