It's time for the class clown to teach.
First, directory = path. Somewhat. Our server uses BSD. It uses a UNIX path. So does Windows, in a sense. And "HDD" = "hard disk drive". This lesson assumes yours is "C:\".
First, a listing of the (default) server directories and their functions. You should see these in your FTP client. Do not delete any directory I list here.
/ -- this is root. Do not touch. Do not upload stuff to root.
/workspace/ -- the "indextemplate.html" and "dailytemplate.html" files MUST go here
/workspace/webpages/ -- all HTML pages that will NOT have sequential comics in them go here. Cast, archive index, FAQ, contact info, etc. You may still use KeenTags, but NO COMIC TAGS. You may put folders and more files in here. These will stay here, but get copied to another location automatically.
/workspace/comics/ -- comic files (images) go here, but they do not STAY here. This is the "buffer" area
/workspace/images/ -- this is a "symlink" to /public_html/images/
/public_html/ -- this is the "root" of the web server. Files here are visible to the entire world. DO NOT PUT STUFF HERE OR DELETE STUFF HERE. When AutoKeen runs, your "template" files AND "webpages" files will be tag-processed and placed here. Directory structure and all; if it's in "webpages", it shows up here.
/public_html/images/ -- put all non-comic site graphics (your photo, your pet's photo, the comic's title) here and ONLY here
/public_html/comics/ -- this is where your comic images end up, on the proper day. NEVER upload comics into here.
/public_html/d/ -- this holds the "archive" pages; one HTML page per day, based on "dailytemplate.html", named in accordance to the date of the comic files. DO NOT DELETE OR CREATE FILES HERE
Special "paths", no matter what directory you are looking at:
"/" is the "root" of the current drive. On your computer this maps to "C:\" (or whatever hard drive letter you choose. On the WEB server, this maps to "/public_html/". Any file or directory in public_html is visible to the world.
".." is the "parent" of the current directory. But you probably knew that.
Moving on. "/images/" does the same thing on all machines. Since it starts with "/", it looks for the directory "images" starting at the ROOT of the current drive. On the server, this is "/public_html/images/" (which is the ONLY place to upload non-comic site graphics. Anti-stealing service is in effect!) On YOUR COMPUTER, "/images/" IS TRYING TO FIND "C:\images\". "/" at the start of any URL will do that.
So, if my current file-in-progress is "C:\Documents and Settings\Brian K. Malerich\My Documents\WWWSite\6guys\indextemplate.html" (yes, that's the whole path), but it references a stylesheet, site images, and other pages using "/" for all of them, my page will NOT look right unless I move everything to "C:\"! In order to preview anything, don't precede paths with "/". So why would I do that to begin with?
Simple. ONE: Because I upload that file to "/workspace/". AutoKeen moves it to "/public_html/". Once there, "/" does nothing. It works.
TWO: Because those of us who might switch domains ("sixguys.keenspace.com" --> "6guys.com") don't want to include the domain in every link. "/" doesn't care about domain.
THREE: Because if I have "indextemplate.html" that calls an image ("title.gif", in "/public_html/images/") and I have an archive page "/public_html/d/20030906.html" that has to call the same graphic, I either have to do this:
"images/title.gif" (or "/images/title.gif") in one and "../images/title.gif" in the other
OR "/images/title.gif" in both
This means ONCE EVERYTHING is on the server and AutoKeen has run, "/" will properly reference everything. My pages have identical code for consistency's sake.
Yes, for you poor new Comic Genesis users this is all confusing. If I code using "/" I must put all the stuff that IS/WILL BE in "public_html" into "C:\" in order to preview. So don't. Just remember; you PUT "indextemplate.html" and "cast.html" (or any other page) in DIFFERENT directories, but they BOTH end up in "public_html". Code according to that, NOT to your hard drive. And never include "workspace" or "webpages" in your code. Pages in them are copied to "public_html" anyway, and that is "/" to the web browser.
Your best solution? If you want more than just the index and automatic archive, PLAN your pages out on paper. File names, directory names, etc. The archive will take care of itself. Remember four things:
1. Code all img references and links from the FINAL structure (the server's point of view), NOT your hard drive.
2. Upload ONLY indextemplate.html and dailytemplate.html to /workspace
3. Site graphics go into /public_html/images
4. The other pages and directories that YOU want go into /workspace/webpages. NOWHERE ELSE. ALL that content gets processed and copied into /public_html, which in your browser is "/".
I sure hope this helps. I'm going to add this as a CGWiki tutorial. Good night.