Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Jul 2007
    Posts
    56
    Thanks
    2
    Thanked 0 Times in 0 Posts

    To index, or not to index

    Hello, I have recently began my web design second career and I have run into differing opinions and would like to ask the guru's here the same. When designing a page do you name the page aboutus.htm and stick it in the parent directory or do you make a separate folder named aboutus and make the htm page index.htm? What are the advantages and disadvantages of both, and why are there two schools of thought? TIA

    Paul

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    IMO its more of a matter of personal preference. I myself use one page for everything then I use php includes to call in the other files. In my case my includes are all in a folder called includes. Others may argue that putting an index file in its own folder will allow for cleaner urls as well as organization of files. They may opt to put all of the images for that page in that folder or any files that are links from that page may also go into that folder.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    Regular Coder BWiz's Avatar
    Join Date
    Mar 2006
    Location
    Sol System
    Posts
    471
    Thanks
    7
    Thanked 21 Times in 21 Posts
    Well it depends on many factors. Firstly, just for note, I prefer to seperate all the pages into different folders (with the exception of the index page). This is exceptionally well when you have to maintain large web sites; you are able to place all the relative data into a single folder.

    For smaller web sites, placing them all into the root folder, I suppose, is still okay, however things can become haphazard and things become more difficult.

    Again, like I said, it depends on the type of web site your designing. I still say that it is better to seperate all the pages into different folders for simplicity and effecieny.

    EDIT: Lol Aero, you typed faster than me!
    Last edited by BWiz; 07-03-2007 at 07:09 AM. Reason: Aero got there first
    BWiz :: Happy Coding!
    2006
    2007 2008 2009
    2010 2011
    Irrational numbers make no sense.

  • #4
    New Coder
    Join Date
    Jul 2007
    Posts
    56
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Thanks guys, that's how I felt, I guess I just wanted some sort of odd validation... Thanks!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •