XML Sitemaps Generator

Author Topic: XML site map can't find the XSL file  (Read 8240 times)

lockley

  • Registered Customer
  • Jr. Member
  • *
  • Posts: 12
XML site map can't find the XSL file
« on: September 03, 2013, 02:28:46 AM »
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 admins 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
file:///Users/xxxx/Downloads/sitemap.xml and I get
Error loading stylesheet: An unknown error has occurred (805303f4)
[external links are visible to admins 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:
file:///Users/xxxx/Downloads/sitemap.xml
Error loading stylesheet: An unknown error has occurred (805303f4)
[external links are visible to admins only]

How do I get this to work?
Thanks.

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10624
Re: XML site map can't find the XSL file
« Reply #1 on: September 04, 2013, 08:11:27 PM »
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.
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.

lockley

  • Registered Customer
  • Jr. Member
  • *
  • Posts: 12
Re: XML site map can't find the XSL file
« Reply #2 on: September 05, 2013, 08:53:08 PM »
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

  • Administrator
  • Hero Member
  • *****
  • Posts: 10624
Re: XML site map can't find the XSL file
« Reply #3 on: September 08, 2013, 07:17:15 AM »
Hello,

that line actually causes the problem. Without it sitemap.xml woud be opened correctly (unless you need that line for something else specifically)
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.

 

SMF 2.0.12 | SMF © 2014, Simple Machines
XHTML RSS WAP2