Forum Moderators: phranque
I generate Sitemap using this rewrite rule
RewriteRule ^sitemapindex\.xml(\.gz)?$ /sitemap.php?gzip=$1 [QSA,L,NC]
But the content type remain php rather than text/xml
# NEVER CACHE
<FilesMatch "\.(html|htm|cgi|pl|php)$">
Header set Cache-Control "max-age=0, private, no-store, no-cache, must-revalidate"
</FilesMatch>
For all php script but for sitemap I wud like robots and browser to cache it
g### is going to do whatever it likes with the sitemap
I doubt that they will go along with pretending a .php file is an .xml.