Forum Moderators: phranque

Message Too Old, No Replies

Automatically create sitemap for static html pages?

         

chopin2256

5:11 am on Aug 5, 2005 (gmt 0)

10+ Year Member



Is there a way to automate a sitemap for html static pages? These pages are not in a database, they are just created using Frontpage. I am wondering if there is some kind of script I can use to help me automate my sitemaps so I don't have to manually create them from now on. Thanks for your help.

Raymond

6:21 am on Aug 5, 2005 (gmt 0)

10+ Year Member



Yes, it is possible to do it with a script.

All you need is to use the FileSystemObject to get the directory structures, then filter out what file types you want to show on the sitemap.

I am pretty sure you can find a similar script on the net. If you know a bit of programming, this is actually a very simple script that shouldn't be over 40 lines.

chopin2256

4:39 pm on Aug 5, 2005 (gmt 0)

10+ Year Member



So this can be done with php? I am just wondering how it works? Is SQL involved?

jatar_k

4:45 pm on Aug 5, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



not necessarily

the logic of it would be to start at the root
read all files
if it is a directory - read all files in directory
keep the filenames to write out the links to a file

it isn't really very difficult but does take some work to get it properly traversing the filesystem.

photon

6:23 pm on Aug 5, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Xenu has a way to create a rudimentary site map. I don't know how hard it would be to prettify it.

chopin2256

6:36 pm on Aug 5, 2005 (gmt 0)

10+ Year Member



Thanks,

What about google sitemaps? Can a google sitemap generate a viewable sitemap?