Designing Your Website's Directory Structure

Written by Stephen Bucaro


Continued from page 1

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

Default Page Configuration

Every website has at least one default webpage configured (also calledrepparttar 131686 "home" page). The default webpage isrepparttar 131687 webpage that is returned whenrepparttar 131688 user enters or clicks on a link containing onlyrepparttar 131689 domain name, without a specific file name. On a Unix or Linux web server,repparttar 131690 default webpage will usually be "index.htm". On a Windows web server (IIS),repparttar 131691 default page will usually be "default.asp".

The website administrator, or if your webhost providesrepparttar 131692 required "control panel" feature, you can actually configure any page to berepparttar 131693 default page. If your web server has more than one default page configured, I would recommend removing all butrepparttar 131694 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 inrepparttar 131695 "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 inrepparttar 131696 folder named common forrepparttar 131697 file named logo.gif".

However,repparttar 131698 link on any webpage contained in one ofrepparttar 131699 sub-directories would be as shown below.

"../common/logo.gif"

The website file manager interprets this as "go up one level, then look down inrepparttar 131700 folder named common forrepparttar 131701 file named logo.gif".

This difference inrepparttar 131702 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 inrepparttar 131703 common file depending upon whetherrepparttar 131704 page linked torepparttar 131705 common file isrepparttar 131706 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 selectsrepparttar 131707 proper link. 2. You could userepparttar 131708 complete path, includingrepparttar 131709 domain name, on all pages. This will cause problems if you ever have to move your website to a different web host (Until allrepparttar 131710 dns servers acrossrepparttar 131711 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, placedrepparttar 131712 head section of your default webpage, will immediately redirectrepparttar 131713 users browser to your real home page.

meta http-equiv="refresh" content="0,url= "http://yourdomain.com/common/homepage.htm"

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!

---------------------------------------------------------- Resource Box: Copyright(C) Bucaro TecHelp. To learn how to maintain your computer and use it more effectively to design a Web site and make money onrepparttar 131714 Web visit bucarotechelp.com To subscribe to Bucaro TecHelp Newsletter visit http://bucarotechelp.com/search/000800.asp ----------------------------------------------------------

To learn how to maintain your computer and use it more effectively to design a Web site and make money on the Web visit bucarotechelp.com To subscribe to Bucaro TecHelp Newsletter visit http://bucarotechelp.com/search/000800.asp


11 Ways To Indirectly Get To The Top Of Search Engines

Written by Gunnar Berglund


Continued from page 1

5. Askrepparttar owner ofrepparttar 131682 web site if they would want to trade advertising. If you don't get as much traffic as they do, you could throw in some extra incentives.

6. Propose a cross promotion deal withrepparttar 131683 web site. You both could promote each others products or services together in one package deal. This means a mention and link back to your web site.

7. Giverepparttar 131684 web site a testimonial for their product or service. Include a little text link for your web site withrepparttar 131685 testimonial. You never know; it could end up on their ad copy.

8. Post your advertisement on their free classified ad section on their web site. You want to be sure you have an attractive headline so they will read your ad.

9. Post your text link on their free-for-all links page. You want to go back and post your link regularly so it stays towardsrepparttar 131686 top.

10. Sign their guest books. You could leave a short compliment about their web site on their guest book. Just include your signature file and link atrepparttar 131687 end of your message.

11. Setup your own blog, you can allways use Blogger.com supplied by Google. it is free and includes Atom.xml so your blog automatically have its own feed.

Gunnar Berglund has been a "internet-

hardworker" for the last five years

He publishes The meonit Gazette

http://gazette.meonit.com

Blogs and RSS, The complete tutorial

http://www.meonit.com




    <Back to Page 1
 
ImproveHomeLife.com © 2005
Terms of Use