+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Website Structure?

  1. #1
    the_site's Avatar
    the_site is offline x10 Sophmore the_site is an unknown quantity at this point
    Join Date
    Jun 2009
    Location
    USA, USA
    Posts
    158

    Website Structure?

    Hello everyone, I just have a quick question. I am just wondering is there any specific way of structuring your website?

    As you see sites that have multiple layers/directories...

    Example:
    http://website.com/name1/name2.html

    On /name1/, does it have to be a page, folder, or any when you structure your website?
    I am guessing when you make /name1/ folder/directory you need an index in it right?

  2. #2
    priyaa161's Avatar
    priyaa161 is offline x10 Elder priyaa161 is an unknown quantity at this point
    Join Date
    Mar 2010
    Location
    My home in Bharat
    Posts
    553

    Re: Website Structure?

    You can structure it in anyway to find easy to manage. And yes we need an index in it.
    Wanna Make Me Happy, Give Me Reputation.

    Click On Medal At Top Right Corner Of MY Post. Gimme or else!

  3. #3
    Jake's Avatar
    Jake is offline Developer Jake is an unknown quantity at this point
    Join Date
    Apr 2005
    Location
    Winona, MN
    Posts
    2,084

    Re: Website Structure?

    I normally do the following for APPLICATIONS or PROGRAMS that need a members area and a admin area:

    domain/index.php(or html)
    domain/styles/images/<images>
    domain/styles/stylesheet.css
    domain/includes/functionlists.php
    domain/classes/stuff.php
    domain/mem/index.php
    domain/acp/index.php

    Depending on what you do I change it up, there are a lot of ways you can do it...

    You just need to remember that folders are helpful. When you create a set of pages that are all linked to one another and they have a specific purpose, like showing the user a bunch of images or something, you should put into a directory like www.domain.com/portfolio/page.php instead of placing all the pages into the main directory.

    Just do it how you'd do it on your own computer, you want large quantities of files to be seperated and organized, if you only have a few files you may not have any folders. (maybe /images or /styles)

  4. #4
    the_site's Avatar
    the_site is offline x10 Sophmore the_site is an unknown quantity at this point
    Join Date
    Jun 2009
    Location
    USA, USA
    Posts
    158

    Re: Website Structure?

    I just wasn't sure if there was any specific way of structuring a site.
    I got the perfect answer from both of you two;" You can manage it any way you would like, as long you know how its structured."

    Once again thanks!

  5. #5
    jasons61 is offline x10Hosting Member jasons61 is an unknown quantity at this point
    Join Date
    Oct 2008
    Posts
    1

    Re: Website Structure?

    Quote Originally Posted by Jake View Post
    I normally do the following for APPLICATIONS or PROGRAMS that need a members area and a admin area:

    domain/index.php(or html)
    domain/styles/images/<images>
    domain/styles/stylesheet.css
    domain/includes/functionlists.php
    domain/classes/stuff.php
    domain/mem/index.php
    domain/acp/index.php

    Depending on what you do I change it up, there are a lot of ways you can do it...

    You just need to remember that folders are helpful. When you create a set of pages that are all linked to one another and they have a specific purpose, like showing the user a bunch of images or something, you should put into a directory like www.domain.com/portfolio/page.php instead of placing all the pages into the main directory.

    Just do it how you'd do it on your own computer, you want large quantities of files to be seperated and organized, if you only have a few files you may not have any folders. (maybe /images or /styles)

    folders have helped me so much especially when backing up and re transfering files! its much more organised!!

  6. #6
    callumacrae's Avatar
    callumacrae is offline not alex mac callumacrae is just really nice
    Join Date
    Dec 2007
    Location
    Wellesbourne, England
    Posts
    5,162

    Re: Website Structure?

    It really depends what you're using it for.

    For example, my structure:

    index.html
    images/
    style.css

    And another of my structures:

    index.php
    page1.php
    page2.php
    admin/index.php
    admin/pagex.php
    admin/style/css
    admin/style/images
    style/css
    style/images

    It really depends what you're using it for.

    ~Callum
    I can customise your phpBB board. Send me a PM.
    lynxphp - info, tutorials and scripts
    "A forum post should be like a skirt; long enough to cover the subject but short enough to keep things interesting."

  7. #7
    farscapeone's Avatar
    farscapeone is offline Community Advocate farscapeone is on a distinguished road
    Join Date
    Dec 2008
    Location
    Србија (Serbia)
    Posts
    1,166

    Re: Website Structure?

    Now you have to separate display form structure. Structure is the way you store files on the server and it depends on what you need and feel comfortable with. On the other hand display is what you defied as http://website.com/name1/name2.html in your example. This does not have to follow the structure of the files and folders on the server. It's typically made to be user and SEO friendly by following some kind of logic. For example, in wordpress you have "www.example.com/2010/05/some-article/" as URL but there are no "2010" and "05" folders. It's structured this way to point out the date and article name for better understanding of the URI. This method is popularly called "Fancy URL" and it's based on Rewrite Engine and .htaccess file.

  8. #8
    the_site's Avatar
    the_site is offline x10 Sophmore the_site is an unknown quantity at this point
    Join Date
    Jun 2009
    Location
    USA, USA
    Posts
    158

    Re: Website Structure?

    Quote Originally Posted by leviathon View Post
    For example, in wordpress you have "www.example.com/2010/05/some-article/" as URL but there are no "2010" and "05" folders.
    I did notice that and I heard about the Rewrite Engine and .htaccess file.
    To Rewrite Urls and redirect right?

  9. #9
    lemon-tree's Avatar
    lemon-tree is offline x10 Minion lemon-tree has a spectacular aura about
    Join Date
    Nov 2007
    Posts
    1,420

    Re: Website Structure?

    Yep, you use it to make neat, short urls that point to non-existant addresses point to long, complex urls that do exist. It basically just makes it nicer for users to remember pages etc.
    e.g.
    User will enter "http://www.example.com/2010/05/some-article/" in their browser, but the server will interpret that as "http://www.example.com/scripts/getarticle.php?year=2010;month=05;article=somearti cle"

  10. #10
    farscapeone's Avatar
    farscapeone is offline Community Advocate farscapeone is on a distinguished road
    Join Date
    Dec 2008
    Location
    Србија (Serbia)
    Posts
    1,166

    Re: Website Structure?

    Yes, Rewrite Engine can be used for that but it's much more complex and can do some incredible stuff.

    http://en.wikipedia.org/wiki/Rewrite_engine

+ Reply to Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 4
    Last Post: 03-29-2010, 11:48 AM
  2. Describe the structure named in the Intel
    By openget in forum Computers & Technology
    Replies: 1
    Last Post: 02-13-2010, 01:35 AM
  3. mysql table structure help
    By saif7463 in forum Programming Help
    Replies: 5
    Last Post: 09-28-2009, 05:28 PM
  4. FTP File Structure
    By jameswhite in forum Free Hosting
    Replies: 2
    Last Post: 06-26-2009, 09:14 PM
  5. Mail server database structure...
    By anuj_web in forum Programming Help
    Replies: 8
    Last Post: 03-20-2009, 09:12 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers