Slim down the website load time...
A drop in the bucket, but drops can add up:
Use a trailing slash on directory URLs.
This saves the server time spent trying to figure out if you are asking for a file, or a directory with the default file.
For example, a URL of http://www.google.net/sample technically means to fetch a file called sample in the root of google.net .
This means the server will have to check if such a file exists, and when it finds that such file does not exist, it will check if there is a directory by the name of "sample". When it does find a directory by that name, it will send back a message to the web browser saying "there is no such file, but there is a directory by that name, so here is the default file from the directory of sample".
Adding a slash at the end of the url, http://www.google.net/sample/ notifies the server off the bat, "Hey, fetch the default file from the sample directory on google.net ".
A little time saver for our overworked, under appreciated web servers.
Bytech IT Solutions -=- Web Design by Bytech
Visit our IT and web design forum: E-Wizard
Renegade posted this at 03:29 — 5th November 2003.
He has: 3,022 posts
Joined: Oct 2002
just a thought, might also help if you did this as well:
url.com/folder/index.php
Suzanne posted this at 04:26 — 5th November 2003.
She has: 5,507 posts
Joined: Feb 2000
The problem with that, Renegade, is that if/when you change your page name/title/extension, you'll have broken links all over the web.
ALSO, it's not as user friendly, harder to remember and reveals too much about your coding.
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.