Forum Moderators: open

Message Too Old, No Replies

Convert sitemap to html page on website

Convert sitemap to html page on website

         

heyclifford

5:52 am on Dec 20, 2012 (gmt 0)

10+ Year Member



I will like to convert my sitemap file to viewable hmtl file on my site so my visitors can utilize it..

Any suggestions on how I can do this?

bill

6:37 am on Dec 20, 2012 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



What format is your sitemap in? I assume it's not HTML, but it could be XML or plain-text format, or an RSS or Atom feed. How is your sitemap generated?

lucy24

9:16 am on Dec 20, 2012 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Depends how pretty you want the html page to be. Any text editor that does Regular Expressions should be able to crank it out for you. Including fancy business for different directories, if that's the kind of thing you want.

PROBLEM. Your sitemap-- in any form-- only gives the filename for each page. For humans you will probably want to use the page title instead. And that brings you into a whole new layer of complicatedness.

g1smd

9:37 am on Dec 20, 2012 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



A few lines of PHP can read in the XML file and generate a HTML tagged list and the various page elements around it.

Page names are a problem. You'd need to look those up in an array or in a database. In that case, you'd generate both the XML sitemap and the HTML sitemap from that data anyway.