Tom's Newbie Booster

Tree Site Map
A script that generates a site map of
all the pages on a domain


Freeware


Description

This is a script which was originally posted on TNB by Dandy. It's not a script that I wrote or can take credit for. But it's a great script which I've been using ever since.

It's one of the most handy scripts I've ever used in my time in this business. The script was originally from http://www.danielnaber.de/tree/ - but I have modified the script slightly from that version. It's more useful for adult webmasters in the new version. So, don't download the script from the above URL - read on.

The set up procedure is pretty fast and, once you've got the hang of it, I find it's a great idea to upload this baby to every domain you're working on as a permanent reference.


What does Tree Site Map do?

Once set up on your webspace, this script will provide you with an accurate map of every webpage that's on that domain. If you add a page to your domain name, then TSM will see that you have done this and will update the site map accordingly.

Possible Uses

• Providing a map which could act as the basis for site map which the search engines could crawl. You can save the out put from your browser as an html webpage and work on it in your editor.

• As a tool to keep you organized.

• As a fast way to check pages on the domain.

• As guide which can be printed out (use draft mode!)

• A reference when you're doing a complete overhaul of the domain and need to visit every page.

Seeing a full on-screen map of your domain name is immeasurably handy. It can refresh your memory about what your long-forgotten pages DO. Just by doing this I've managed to find broken links, old sponsor codes, scripts that stopped working, and lots of holes where I have fit in link to more sponsors or FPA loops.

There were also pages that were missing SSI consoles, and others where the SSI wasn't working. Another problem was that sometimes .htaccess wasn't redirecting lost surfers - so I fixed that up too.

It's a way to quickly pour over your domains and their pages and see what's going on. It's great to be able to see this on-screen as well as to keep a hard copy record you can use as a reference.

After installing this on some of my domains, I found some pretty good pages that I'd forgotten about which I could make whole fake link lists around (and I can use the source code that the script generates!)


Working Example

Check out http://www.bare-foot-pics.com/cgi-bin/tree.pl to see this script in action.

Tree Site Map is run by visiting the script in a browser, as shown above. When you do that the program looks up every page on your domain name and then lists it in a logical order. These links can then be clicked and the page contents viewed as normal. What you're seeing is a REAL TIME map of your domain's structure and pages.

This script becomes especially useful several months down the line, or even a year plus, when you might have forgotten some of the pages you'd put there.


Download & Installation


The tree script is one simple file. You can DOWNLOAD IT HERE:

1) Once you've got that .zip file on your hard disk, you'll need to unzip it with something like Winzip. Extract the tree.pl file to a folder on your hard disk.

2) Open tree.pl up in a plain old text editor (like notepad for Windows). The 100% free NoteTab will make life easier when editing script files.

3) Look for the line that says:

$conf::basedir = "/home/htdocs/users/tarmstro/tarmstro/bare-foot-pics.com";

4) Replace:

/home/htdocs/users/tarmstro/tarmstro/bare-foot-pics.com

With the path to the HTML files on your own web space. So this should be the server path to the place where say index.html on your domain name is. Don't worry if that sounds complicated - just take a read of the following article:

What's my server path? http://www.tomsnewbiebooster.com/whats-my-server-path.html

5) Now upload tree.pl to your domain name's cgi-bin/ in ASCII mode.

6) CH MOD tree.pl to 755

There's more help on CH MOD here:

CHMOD tutorial

7) Now go to tree.pl in your web browser. So if your domain was free-kinky-fetish-sex.com/ you'd go to free-kinky-fetish-sex.com/cgi-bin/tree.pl in your web browser. You should then have the map of your domain name generated for you.

If you're having problems - give me a shout and I'll take a look at it for you.


Enter Tom's Newbie Booster here
More tips, scripts and help...