Welcome to WebmasterWorld Guest from 54.147.50.227

Forum Moderators: bill & werty

Message Too Old, No Replies

Convert sitemap to html page on website

Convert sitemap to html page on website

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

New User

joined:Dec 19, 2012
posts:1
votes: 0


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?
6:37 am on Dec 20, 2012 (gmt 0)

Administrator from JP 

WebmasterWorld Administrator bill is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Oct 12, 2000
posts:14851
votes: 101


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?
9:16 am on Dec 20, 2012 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member lucy24 is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month

joined:Apr 9, 2011
posts:13218
votes: 348


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.
9:37 am on Dec 20, 2012 (gmt 0)

Senior Member

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:July 3, 2002
posts:18903
votes: 0


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.
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members