XML Sitemaps Generator

Author Topic: Path to sitemap.xsl incorrect in relation to sitemap.xml  (Read 10550 times)


  • Registered Customer
  • Approved member
  • *
  • Posts: 1
Path to sitemap.xsl incorrect in relation to sitemap.xml
« on: June 16, 2010, 05:34:35 AM »

I recently upgraded and the script work well. I noticed a small problem with the relative path to the sitemap.xsl.

Our sitemap generates on the root directory / root / sitemap.xml
Our sitemap script is hidden under a password protected directory away from the public.
Example: /private/directory/sitemap/pages/mods/

When the script is generated in the root directory, the style sheet is referenced to the private directory where the pages live. Shouldn't the style directory be linked to the relative path of the sitemap.xml or placed alongside the sitemap.xml file?

Should we change this code: <?xml-stylesheet type="text/xsl" href="%GEN_URL%pages/mods/sitemap.xsl"?> to read: <?xml-stylesheet type="text/xsl" href="sitemap.xsl"?> and do I need to do this to all the templates so the stlye sheet is addressed correctly and away from the private directories?


XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10599
Re: Path to sitemap.xsl incorrect in relation to sitemap.xml
« Reply #1 on: June 16, 2010, 09:38:22 PM »

you should change stylesheet reference in template to:
<?xml-stylesheet type="text/xsl" href="http://www.domain.com/sitemap.xsl"?>
and move sitemap.xsl to domain root.
Oleg Ignatiuk
Send me a Private Message

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


SMF 2.0.11 | SMF © 2014, Simple Machines