On 3/4/09 6:18 AM, "Joe Makowiec" wrote:
Quote:
On 04 Mar 2009 in macromedia.dreamweaver, John Waller wrote:
Actually, no; it's done at the server level.
OK, thanks Joe.
So the fact remains that the trailing slash doesn't need to be added
by the user.
True. |
But it's *better* if your links are coded *with* the trailing slash. Notice
the two lines of sample server log that Joe posted:
10.10.29.5 - - [04/Mar/2009:05:49:53 -0500] "GET /page HTTP/1.1" 301 315 "-"
10.10.29.5 - - [04/Mar/2009:05:49:53 -0500] "GET /page/ HTTP/1.1" 200 4325
"-"
Notice anything about that first request, for /page without the trailing
slash? The server calls it a a 301 (permanently moved) and redirects it to
/page/ with the slash.
That means that every page request from the browser actually results in
*two* pages requests for the server. On a busy site that can slow things
down.
Also, even though the search engines have gotten pretty good at handling
301s, I can't imagine it's good for search engine optimization, either. If I
were Google, and I saw that every internal link on your site resulted in a
301, I'd probably be somewhat skeptical about your site as a whole.
--
Sonjay