XML Sitemaps Generator

Author Topic: Sort order in sitemap.html  (Read 22677 times)


  • Registered Customer
  • Approved member
  • *
  • Posts: 4
Sort order in sitemap.html
« on: September 14, 2006, 11:05:29 PM »
I've made my first sitemap, and it works just fine. Having looked at the XML file, I can see the way it is arranged as a simple list of URLs.

A review of the HTML file shows no apparent sort order. It's neither alphabetical nor by file name (with the page title showing). This makes the resulting sitemap potentially confusing for my visitors to use.

[external links are visible to admins only]

But the initial page does not validate as strict XHTML, so some tweaking is in order. In order to have some control over how the sitemap looks, I cut and pasted the table structure into my PHP page template.

[external links are visible to admins only]

Two issues come up: 1) the code in the copyright contains a "target" tag, which is not valid; 2) when the page title is stuffed into the a: links, the ampersands (&) are converted to &. The problem is that I already have them as such, so the code gets doubled: &, which makes the validator howl.

Suggestions or fixes??

Don Strack

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10601
Re: Sort order in sitemap.html
« Reply #1 on: September 15, 2006, 10:09:33 PM »
Hello Don,

the links in html sitemap are structured by the folder "levels": the first block contains the pages from domain root, then all links from subfolder1/ etc.

1. You can correct this in pages/sitemap_tpl.html template file, we will also modify this in next sitemap generator version.
2. This will be corrected in next version.

Thank you for reporting! :)
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.12 | SMF © 2014, Simple Machines