Site map [ add to favorites ]




Advertising:


"Turn your website into a round-the-clock sales force!" 
corps studio™  

[other ...
    Library \ Web Development \ Designing Your Website's Directory Structure:
 

Designing Your Website's Directory Structure


By Stephen Bucaro

Any kid, and their grandmother too, can make a webpage. There are many "wysiwyg" webpage design applications that let you create a webpage as easy as typing text. But only a few people can create a WEBSITE. The stumbling block is knowing how to link webpages together to form a website. I have seen many websites that consist of a single webpage - about a mile long!

The second problem is that most people don't know how to write a relative link. Relative links have the advantage that you don't need to know the path to the webpage that you want to link to, you only need to know where it is "relative" to the webpage containing the link.

Designing Your Directory Structure

The first step to implementing a website is to design the directory structure. Let's design a directory structure for a simple download website. The website consists primarily of articles and digital material that visitors can download. You could just dump everything at the top level of the website. Good luck maintaining that website!

To keep the files organized, you need to create sub-directories (folders) on the website. Even though the website consists only of articles and digital downloads, you need five sub-directories, as described below.

  • articles
  • downloads
  • general
  • common
  • cgi-bin

You understand what the "articles" and "downloads" sub-directories are for, but what are the other three sub-directories for? It's standard practice to provide certain features on your website, as listed below.

  • About
  • Contact
  • FAQ
  • Privacy Policy
  • Search
  • Sitemap
  • User Agreement

Each of these features requires a webpage. Instead of dumping the webpages at the top level of the website, or mixing them in with articles or downloads, let's put them together in a folder named "general" (I'm sure you can think of a better name).

All of your webpages use certain things in common, for example, your logo graphic. If your web server provides SSI (Server Side Includes) all your webpages can share a common header file and a common footer file. You might also define all your website's styles in a common style sheet. Let's put all of these files in a folder named "common".

Your contact page might use an email form. If your server provides server-side scripts, you would place the email form script in a folder named "cgi-bin". Cgi-bin stands for "Common Gateway Interface - Binary". Few people use CGI any more, and those that do don't use binary files, but the folder name has stuck as a traditional place to store scripts. Almost all websites come with a preconfigured cgi-bin folder, and the website may be configured so that the cgi-bin folder is the only folder with rights to run scripts.

I would also recommend that you create certain sub-directories for some of the above mentioned directories. Most web pages contain images. You could dump all the images in the same folder with the webpages, but when you get more than about 50 files in a folder, it becomes difficult to maintain. You should create an "images" sub-directory in the articles, downloads, and general directories. The downloads directory should also have a "files" sub-directory to store the downloads.

This arangement of directories and sub-directories will provide good file organization for the example website. Understanding my reasoning for this directory structure should help you to design a directory structure for the website you have in mind.

Default Page Configuration

Every website has at least one default webpage configured (also called the "home" page). The default webpage is the webpage that is returned when the user enters or clicks on a link containing only the domain name, without a specific file name. On a Unix or Linux web server, the default webpage will usually be "index.htm". On a Windows web server (IIS), the default page will usually be "default.asp".

The website administrator, or if your webhost provides the required "control panel" feature, you can actually configure any page to be the default page. If your web server has more than one default page configured, I would recommend removing all but the default page that you intend to use.

Now, let's assume that all of your webpages need to link to an image file named "logo.gif" stored in the "common" folder. The relative link on your default webpage would be as shown below.

"common/logo.gif"

The website file manager interprets this as "look in the folder named common for the file named logo.gif".

However, the link on any webpage contained in one of the sub-directories would be as shown below.

"../common/logo.gif"

The website file manager interprets this as "go up one level, then look down in the folder named common for the file named logo.gif".

This difference in the link may not be a problem unless you use SSI or ASP (Active Server Pages) to build your webpages from a common header file and a common footer file. Then you need a different link in the common file depending upon whether the page linked to the common file is the default webpage (where you would use common/filename) or a webpage contained in a sub-directory (where you would use ../common/filename). There are several ways to solve this problem.

1. If your website has a server-side scripting engine like ASP or PHP and you know how to program, you could implement code that selects the proper link.

2. You could use the complete path, including the domain name, on all pages. This will cause problems if you ever have to move your website to a different web host (Until all the dns servers across the planet have been updated).

3. You could put your home page in a sub-directory, for example "common", and make your default page into a re-direct to your home page. Then you would use "../common/filename" for all links. The following meta tag, placed the head section of your default webpage, will immediately redirect the users browser to your real home page.

In this article, I showed you how to design a directory structure for your website and how to create relative links to link all your webpages together to form a website. Website visitors don't like to do a lot of scrolling, so try to keep your webpages to only two or three screens high. Please, no more websites that consist of only one mile long webpage!





 
 

WebSite Design & Development - Price / OrderWebSite Design & Development - Price / Order


CORPS STUDIO can help you to make your business easierCORPS STUDIO can help you to make your business easier!!!

WebSite Design & Development - Price / Order Please, fill up the order form



 

Additional Information:

Advertise | Advertising Guides | Affiliate Marketing | Articles Publishing Guides | Auction Business | AutoResponder | Banners | Blogging | Business Opportunities | Career Advice | Computers and the Internet | Copywriting | Copywriting Guides | Domain Name | E-book | E-mail Marketing | Ezine | Forum | Getting Started | Google | Home Based Business Ideas | Home Office Organizing | Hosting | Internetmarketing | Legal | Legal and Tax Issues | Managing Your Business | Marketing | Marketing Guides | Miscellaneous | Miscellaneous Articles | More Ideas | Network Marketing | Online Business | Online Marketing | Pay-per-click | Personal Finance | Promotion Tools | Promotion World Tutorial | Public Relation | Publishing Guides | Scammers | Search Engine Optimization | Search Engine Submission | Search Engines | Self Development | SEO | Site Promotion | Small Business | Small Business Ideas | Spam | Start A Home Based Business | Start-up | Web Design and Development | Web Designing | Web Development | Web Glossary | Website Content | Website optimization | Website Promotion | Website ranking | Website registration | Website Traffic | Website Usability | Writing Newsletter

 

Website design tips:

10 Easy Steps to a Useable Website
10 Ways to Achieve Superior Web Site Design
2 Powerful Ways To Capitalize on Your Search Engine Traffic
3 Steps To Home Business Success
5 Essential Traits Of A Home Business Website
5 Hot Internet Businesses For 2005
8 Steps to Design a Surfer Friendly Website That Search Engines Love!
A 4-Step System for Uncovering Hot Niche Markets
A new alternative in online selling
Are There Any Real Opportunities Left Online?
Are You Made To Run An Internet Business
Beware of Internet Marketing Dream Merchants
Breathe New Life Into Your Half-Dead Website By Using Words That Sell
Building a Church Website
Cheap Web Hosting, What To Look For And What To Stay Away From
Choosing the Right Website Designer
Choosing your Meta-Keywords
Color Psychology for webpages
Confessions and Tips from a Top Web Hosting Salesman
Courtesy Titles and website design guidelines
Culture and Website Localization
Do You And Your Website Have Credibility?
eCommerce, How much does it cost?
Email tips and tricks
Exploding the Myths
Finding Your Home Business Niche
Flash MX Invades The Internet
Getting Started to Get Started
Give Your Website A Chance
Here's What I Use to Help my eBay Selling
How Do I Get My Business On The Internet?
How Many Sales Have You Made After Your Advertising Campaign?
How Much Does A Website Cost?
How To Choose a Perfect Home Based Business
How To Choose A Website Designer
How To Create A Professional Website In Less Than A Week
How To Create A Website In Less Than A Week
How To Make Your Website More Successful? (Part I)
How to Prepare Your Project before You Order Website Design
How To Save Money on a Website
How To Sell Your Website Fast
How To Set Up an Ezine Encyclopedia
How To Use the Multiplier Effect in Web Marketing
Improve your website get better Search Engine Ranking
In Network Marketing, Do as the Romans Do
Internet Business :: Is It For You ?
Internet Directory Submission, Sure Way To Link Popularity
Internet Marketing Simplified! 2 Pillars For Achieving Massive Results
Internet Search Engine Marketing Services
Is Your Website Violating Trademark Law?
Linking for Fun and Profit
Make Money At Home-Start Here First
Make Your E-Commerce Website More Than An Electronic Catalog
Optimal Website Design
Planning a usable website: A three-step guide
Search Engine Optimization for Newbies
Selling online? Get ready to meet these guys (and girls!)...
Setting Up Your First Web Hosting Account
Stop Slacking and TAKE ACTION!!: Tid-Bit-Tips For Online Success
Test Your Marketing Strategies & Systems Or Fail...
The Website CHECKLIST : Domains, Hosting, Web Design
The 8 Most Important Website Design Principles
The Key Points of Successful Online Business
The Psychology of Color in Web Design
The Top 20 Web Mistakes Small Businesses Make
The Topic Of Your Website
There's Gold in Your Website's Server Log
Tips To Power-Up Your Sales Copy
Top 10 Tips on Running a Widely Successful and Profitable Business Online
Understand Your Color
Use Feng Shui Techniques To Design a Harmonic Website For Your Business
Web Crimes: how to avoid common website design mistakes
Web Accessibility Myths
Web Designers Beware
Web Templates: Replacing Designers?
Website Design Basic Concepts
Websites: First-rate and Easy on the Pocket
What is an Affiliate Program and How Can It Make Me Money?
What to avoid to make your website design effective?
When to Hire a Professional SEO Firm?
Why is GOOGLE Butchering SERP Titles and Descriptions?
You Too Can Have an Amazing Website
Your Website Should Be Selling

Articles / Today's review:

News and Article Management
Our Guarantee To You
Our Possibilities
Professional Copywriting Services
Quality Web Site
Reasons Why You Should Have a Weblogger Installed on Your Web Site
Search Engine Marketing
Search Engine Optimization Packages
Search Engine Optimization Services
Search Engine Positioning Professional Services
Web Designing Tips
Web designing
Web Hosting & Web Site Maintenance
Web site Design
Website Development Process
Website Redesign Services
Which keywords should you optimize your site for?
Why Choose Corps Studio for your Search Engine Optimization Needs?
You Can't Just Build A Website And Hope It Works!
Your Secret Weapon: The Web Design Directory

 
Google

return up ("Designing Your Website's Directory Structure")

this information

Designing Your Website's Directory Structure

is presented by

[ Home | Services | Development | Portfolio | Info | Help | Order | Contacts | Testimonials | Web aphorisms | Library | Links Exchange Partners | Resources - Link Exchange]
Copyright © 2002 - 2008.  made by corps studio™
Advertising: