• Welcome to Sitemap Generator Forum.
 

XML site map can't find the XSL file

Started by lockley, September 03, 2013, 03:28:46 AM

Previous topic - Next topic

lockley

The initial setup for the standalone sitemap generator .xml templates points to the sitemap.xsl link in href="%GEN_URL%generator/pages/mods/sitemap.xsl

When I try to view [ External links are visible to forum administrators only ] in the Firefox browser (I have the preferences set to open in the browser), it still gets downloaded and is then opened in the browser as
[ External links are visible to forum administrators only ] and I get
Error loading stylesheet: An unknown error has occurred (805303f4)
[ External links are visible to forum administrators only ]

So I tried changing the template to use href="%GEN_URL%sitemap.xsl"
I also moved a copy of the sitemap.xsl file into my root directory but I get the same problem:
[ External links are visible to forum administrators only ]
Error loading stylesheet: An unknown error has occurred (805303f4)
[ External links are visible to forum administrators only ]

How do I get this to work?
Thanks.

XML-Sitemaps Support

Hello,

looks like your server is not configured to serve xml files correctly. You can try to upload any xml file and open it.
Your server returns http header:
Content-Type: application/x-httpd-php

That's why it's not displayed correctly in browser.

lockley

Hi,

Thanks. In the htaccess file, I have the line

AddType application/x-httpd-php .xml .rdf

but that doesn't seem to be enough. I've written to the sys admin to see if something else needs to be done at his end.


XML-Sitemaps Support

Hello,

that line actually causes the problem. Without it sitemap.xml woud be opened correctly (unless you need that line for something else specifically)