Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Newbie Q: web site directory structure

 
   Web Hosting and Web Master Forums (Home) -> Webmaster RSS
Next:  Frame Frenzy  
Author Message
nj_dilettante

External


Since: Sep 10, 2003
Posts: 5



(Msg. 1) Posted: Wed Sep 10, 2003 3:33 pm
Post subject: Newbie Q: web site directory structure
Archived from groups: alt>www>webmaster (more info?)

I'm setting up my first non-templated web site and have no clue about how to
use/set up web site directory structures. I'd like to conform to usual
conventions from the start.

First, do all web hosts provide you with the same basic directory structure
when they set up your account?

I've got:

/mail
/public_ftp
/public_html
/cgi-bin
/tmp
/www

I finally figured out that index.html goes into /public_html, but am lost as
to where to put things after that. And what's the WWW directory for? I'm
assuming its some sort of alias since it points me to /public_html.

Is there some source for learning this basic stuff without having to bother
other people? (I'd like to save your good will for more important
questions!)

TIA
Peggy

 >> Stay informed about: Newbie Q: web site directory structure 
Back to top
Login to vote
sp_bhuisman

External


Since: Jun 27, 2003
Posts: 571



(Msg. 2) Posted: Wed Sep 10, 2003 3:33 pm
Post subject: Re: Newbie Q: web site directory structure [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Wed, 10 Sep 2003 12:33:16 GMT, nj_dilettante <nj_dilettante RemoveThis @att.net>
wrote:

 > I'm setting up my first non-templated web site and have no clue about
 > how to
 > use/set up web site directory structures. I'd like to conform to usual
 > conventions from the start.

There really is no set convention. I myself like to keep folder names
short, thus keeping URL's short. A typical setup for me is:

/www
/img - for images
/gif
/jpg
/png
/nav - all images to do with the website template
/misc - for you-know-what Wink
/inc - PHP include files, js files
[webpages]
.
.
.

I don't use a cgi-bin, but you might.

Grey

--
The technical axiom that nothing is impossible sinisterly implies the
pitfall corollory that nothing is ridiculous.
- <a style='text-decoration: underline;' href="http://www.greywyvern.com" target="_blank">http://www.greywyvern.com</a> - Orca RingMaker: PHP web ring creation and
management<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Newbie Q: web site directory structure 
Back to top
Login to vote
dylan

External


Since: Jun 29, 2003
Posts: 111



(Msg. 3) Posted: Wed Sep 10, 2003 4:43 pm
Post subject: Re: Newbie Q: web site directory structure [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

nj_dilettante wrote:

 > /mail
 > /public_ftp
 > /public_html
 > /cgi-bin
 > /tmp
 > /www

Basically, any pages you want on your site go in the public_html[1]
folder, and any CGI scripts[2] that you have should go in the cgi-bin
folder. You can safely ignore the other folders. Do NOT try to delete any
of these folders though (although likeliness is you couldn't delete them
anyway).

[1] Some hosts have different names for these folders. Some may call it
www (as yours appears to have an alias for) or may call it http_docs or
something similar.

[2] Programs, often written in Perl, that are used to dynamically generate
pages on your site. If you are new to all this, as I see you are, then the
likeliness is that you won't use this folder either.

--
Dylan Parry - <a style='text-decoration: underline;' href="http://www.DylanParry.com" target="_blank">http://www.DylanParry.com</a><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Newbie Q: web site directory structure 
Back to top
Login to vote
dragnet

External


Since: Jul 14, 2003
Posts: 423



(Msg. 4) Posted: Wed Sep 10, 2003 5:34 pm
Post subject: Re: Newbie Q: web site directory structure [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"nj_dilettante" <nj_dilettante.RemoveThis@att.net> wrote in
news:gSE7b.133243$0v4.9758164@bgtnsc04-news.ops.worldnet.att.net:

 > I'm setting up my first non-templated web site and have no clue about
 > how to use/set up web site directory structures. I'd like to conform
 > to usual conventions from the start.
 >
 > First, do all web hosts provide you with the same basic directory
 > structure when they set up your account?
 >
 > I've got:
 >
 > /mail
 > /public_ftp
 > /public_html
 > /cgi-bin
 > /tmp
 > /www
 >
 > I finally figured out that index.html goes into /public_html, but am
 > lost as to where to put things after that. And what's the WWW
 > directory for? I'm assuming its some sort of alias since it points me
 > to /public_html.
 >
 > Is there some source for learning this basic stuff without having to
 > bother other people? (I'd like to save your good will for more
 > important questions!)

there isn't really a 'standard' setup for directory structures, since
I've seen em all over the map.

You may want to practice good file organization yourself, though, as you
build out a site. (Just to make it easier to find components)

For mine, this might be a typical structure:

/public_html
  /cgi-bin
   /libraries
  /images
   /banners
   /headers
  /templates
  /section1
  /section2 (etc)
  /protecteddir

--
Marc Bissonnette
/ Perl / CGI / Database / Dynamic Web Content Control /
<a style='text-decoration: underline;' href="http://www.internalysis.com" target="_blank">http://www.internalysis.com</a>
Looking for a new ISP? <a style='text-decoration: underline;' href="http://www.canadianisp.com" target="_blank">http://www.canadianisp.com</a><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Newbie Q: web site directory structure 
Back to top
Login to vote
nj_dilettante

External


Since: Sep 10, 2003
Posts: 5



(Msg. 5) Posted: Wed Sep 10, 2003 6:22 pm
Post subject: Re: Newbie Q: web site directory structure [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Marc Bissonnette" <dragnet RemoveThis @internalysis.com> wrote in message
news:Xns93F26B897AC25dragnetinternalysisc@206.172.150.13...
 > "nj_dilettante" <nj_dilettante RemoveThis @att.net> wrote in
 > news:gSE7b.133243$0v4.9758164@bgtnsc04-news.ops.worldnet.att.net:
 >
  > > I'm setting up my first non-templated web site and have no clue about
  > > how to use/set up web site directory structures. I'd like to conform
  > > to usual conventions from the start.
  > >
  > > First, do all web hosts provide you with the same basic directory
  > > structure when they set up your account?
  > >
  > > I've got:
  > >
  > > /mail
  > > /public_ftp
  > > /public_html
  > > /cgi-bin
  > > /tmp
  > > /www
  > >
  > > I finally figured out that index.html goes into /public_html, but am
  > > lost as to where to put things after that. And what's the WWW
  > > directory for? I'm assuming its some sort of alias since it points me
  > > to /public_html.
  > >
  > > Is there some source for learning this basic stuff without having to
  > > bother other people? (I'd like to save your good will for more
  > > important questions!)
 >
 > there isn't really a 'standard' setup for directory structures, since
 > I've seen em all over the map.
 >
 > You may want to practice good file organization yourself, though, as you
 > build out a site. (Just to make it easier to find components)
 >
 > For mine, this might be a typical structure:
 >
 > /public_html
 > /cgi-bin
 > /libraries
 > /images
 > /banners
 > /headers
 > /templates
 > /section1
 > /section2 (etc)
 > /protecteddir
 >
 > --
 > Marc Bissonnette
 > / Perl / CGI / Database / Dynamic Web Content Control /
<font color=purple> > <a style='text-decoration: underline;' href="http://www.internalysis.com</font" target="_blank">http://www.internalysis.com</font</a>>
<font color=purple> > Looking for a new ISP? <a style='text-decoration: underline;' href="http://www.canadianisp.com</font" target="_blank">http://www.canadianisp.com</font</a>>

Thanks - "good practice" is what I'm after. I've been a mainframe developer
for years and years, and know that I need/want things organized, but I don't
yet know what those 'things' are in the web development world! And I REALLY
don't want to have to do major restructuring when I find out that my initial
organization doesn't work too well.

BTW - what would you put in /protecteddir?<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Newbie Q: web site directory structure 
Back to top
Login to vote
dragnet

External


Since: Jul 14, 2003
Posts: 423



(Msg. 6) Posted: Wed Sep 10, 2003 7:09 pm
Post subject: Re: Newbie Q: web site directory structure [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"nj_dilettante" <nj_dilettante.TakeThisOut@att.net> wrote in
news:UkH7b.133367$0v4.9769831@bgtnsc04-news.ops.worldnet.att.net:

 > "Marc Bissonnette" <dragnet.TakeThisOut@internalysis.com> wrote in message
 > news:Xns93F26B897AC25dragnetinternalysisc@206.172.150.13...
  >> "nj_dilettante" <nj_dilettante.TakeThisOut@att.net> wrote in
  >> news:gSE7b.133243$0v4.9758164@bgtnsc04-news.ops.worldnet.att.net:
  >>
   >> > I'm setting up my first non-templated web site and have no clue
   >> > about how to use/set up web site directory structures. I'd like to
   >> > conform to usual conventions from the start.
   >> >
   >> > First, do all web hosts provide you with the same basic directory
   >> > structure when they set up your account?
   >> >
   >> > I've got:
   >> >
   >> > /mail
   >> > /public_ftp
   >> > /public_html
   >> > /cgi-bin
   >> > /tmp
   >> > /www
   >> >
   >> > I finally figured out that index.html goes into /public_html, but
   >> > am lost as to where to put things after that. And what's the WWW
   >> > directory for? I'm assuming its some sort of alias since it points
   >> > me to /public_html.
   >> >
   >> > Is there some source for learning this basic stuff without having
   >> > to bother other people? (I'd like to save your good will for more
   >> > important questions!)
  >>
  >> there isn't really a 'standard' setup for directory structures, since
  >> I've seen em all over the map.
  >>
  >> You may want to practice good file organization yourself, though, as
  >> you build out a site. (Just to make it easier to find components)
  >>
  >> For mine, this might be a typical structure:
  >>
  >> /public_html
  >> /cgi-bin
  >> /libraries
  >> /images
  >> /banners
  >> /headers
  >> /templates
  >> /section1
  >> /section2 (etc)
  >> /protecteddir
  >>
  >> --
  >> Marc Bissonnette
  >> / Perl / CGI / Database / Dynamic Web Content Control /
<font color=green>  >> <a style='text-decoration: underline;' href="http://www.internalysis.com</font" target="_blank">http://www.internalysis.com</font</a>>
<font color=green>  >> Looking for a new ISP? <a style='text-decoration: underline;' href="http://www.canadianisp.com</font" target="_blank">http://www.canadianisp.com</font</a>>
 >
 > Thanks - "good practice" is what I'm after. I've been a mainframe
 > developer for years and years, and know that I need/want things
 > organized, but I don't yet know what those 'things' are in the web
 > development world! And I REALLY don't want to have to do major
 > restructuring when I find out that my initial organization doesn't
 > work too well.
 >
 > BTW - what would you put in /protecteddir?

/protecteddir is just representational of anything you'd have in a
password protected directory (members only stuff, stuff under
development, etc.) Depending on the nature of the content in the
protected directory, you may need/want a sub-hierarchy under that dir for
images and whatnot (let's say you had engineering drawings or project
documents, etc)

Getting into good directory organization from the get-go is a _really_
good thing to do. I wish I had done that from the beginning, as there are
still a few sites I have to deal with where I shake my head at my own
lack of foresight from years ago Sad

--
Marc Bissonnette
/ Perl / CGI / Database / Dynamic Web Content Control /
<a style='text-decoration: underline;' href="http://www.internalysis.com" target="_blank">http://www.internalysis.com</a>
Looking for a new ISP? <a style='text-decoration: underline;' href="http://www.canadianisp.com" target="_blank">http://www.canadianisp.com</a><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Newbie Q: web site directory structure 
Back to top
Login to vote
dan2

External


Since: Jul 26, 2003
Posts: 18



(Msg. 7) Posted: Thu Sep 11, 2003 4:33 am
Post subject: Re: Newbie Q: web site directory structure [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

nj_dilettante wrote:
 > I'm setting up my first non-templated web site and have no clue about how to
 > use/set up web site directory structures. I'd like to conform to usual
 > conventions from the start.

There are no set conventions about subdirectories in a site; it depends
on what your site's needs are. Just try to plan things logically.

I have some notes on subdirectories here:
<a style='text-decoration: underline;' href="http://webtips.dan.info/subdir.html" target="_blank">http://webtips.dan.info/subdir.html</a>

--
== Dan ==
Dan's Mail Format Site: <a style='text-decoration: underline;' href="http://mailformat.dan.info/" target="_blank">http://mailformat.dan.info/</a>
Dan's Web Tips: <a style='text-decoration: underline;' href="http://webtips.dan.info/" target="_blank">http://webtips.dan.info/</a>
Dan's Domain Site: <a style='text-decoration: underline;' href="http://domains.dan.info/" target="_blank">http://domains.dan.info/</a><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Newbie Q: web site directory structure 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Web Design Pricing Structure - Hello, I am working on building up a web page design business for my area, but I'm still stuck in the area of pricing. How should I begin to arrange my pricing structure? What sorts of things should be factors in determining the overall cost to a client...

Add you site to this directory - Free quick sign up, add the A1 ribbon to your site or a text link and every visitor you refer places you higher within the directory. Just started, welcome your support for www.A1Sites.com Herc

##Newbie Here w/?## - Hi, I am new to being a webmaster. I have found alot of scripts (HotScripts) on the web to use but I always have problems. Was to be expected! But, I have never gotten a form to email script to work. Can anyone suggest a good reliable form to email..

newbie questions - I registered a URL, and then used free URL forwarding to point to a geocities site. Thought this would be great until I realized that the URL shows geocities once the forwarding happens. So I guess I'll have to pay for hosting. It's a simple web site wit...

What do I use instead of frames - newbie - Hi, I am trying to make a website for a friend, after my last post about graphics I was told that frames would be a bad idea. Could someone tell me how I would go about it another way please. I want the logo in the top right and the menu on the left t...
   Web Hosting and Web Master Forums (Home) -> Webmaster All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]