Apr 18

I’m having a problem with the Google XML Sitemaps plugin. When I open it with Firefox I get:

Error loading stylesheet: An XSLT stylesheet does not have an XML mimetype:

http://mydomain.com/sitemap.xsl

I got the answer from there. It works but output is quite ugly. I had to modify the document by adding xslt to the text/xsl/xslt.

<?xml-stylesheet type=”text/xsl/xslt” href=”http:// mydomain.com /blog/wp-content/plugins/google-sitemap-generator/sitemap.xsl”?>

Then open your .htaccess file in an editor and insert this:

AddType application/xml .xsl

That solved the problem for me.

Incoming search terms for the article:

AddType application/xml xsl

Leave a Reply

Features Stats Integration Plugin developed by YD