High Rankings Search Engine Optimization ForumHigh Rankings Advisor Search Marketing Newsletter

Welcome Guest ( Log In | Register )

Important Announcement: ***Need an Affordable SEO Website Review?***
2 Pages V   1 2 >  
Reply to this topicStart new topic
> Using Trailing Slash In Linking, Using Trailing slash in linking
Jen C
post Mar 29 2005, 01:51 AM
Post #1


HR 3
***

Group: Banned
Posts: 83
Joined: 20-December 04
User's local time:
Feb 9 2010, 03:43 PM
Member No.: 6,013



Lately I have been trading some links with fellow sites and have noticed alot of webmasters are strongly against us using a trailing slash in their reciprocal url:

http://www.somesite.com/

Is there a real difference, seo or otherwise to using a trailing slash in the url? Will using a trailing slash in the urls i use for my on page anchors make any difference to seo?

Any opinions on this would be great!

Regards,
Jen C
Go to the top of the page
 
+Quote Post
chrishirst
post Mar 29 2005, 03:28 AM
Post #2


HR 9
Group Icon

Group: Moderator
Posts: 4,356
Joined: 13-August 03
User's local time:
Feb 9 2010, 07:43 PM
From: Blackpool UK
Member No.: 492



No real difference for SEO, but it does show the lack of knowledge on the part of these "webmasters" (using the term very loosely)

The trailing slash tells the server to use the default document list for that folder and load that page. Without it the server first looks for a matching document name, then a folder with that name and use default doc list, finally performing a redirect (302) to that document.

so using the trailing slash saves a certain amount of server load and aids the speed the document will load.
Go to the top of the page
 
+Quote Post
Ron Carnell
post Mar 29 2005, 09:12 AM
Post #3


HR 6
Group Icon

Group: Moderator
Posts: 918
Joined: 24-July 03
User's local time:
Feb 9 2010, 02:43 PM
From: Michigan USA
Member No.: 17



I agree with Chris, but unfortunately, we seem to be a minority.

I was appalled to hear Yahoo rep, Jon Glick, say they purposely strip the trailing slash off search results because "that's the way most surfers would type it." MSN chooses to not display the trailing slash in their SERPs, but nonetheless adds it when implementing their redirect. Only Google, of the big three, both displays the slash to visitors and uses it in linking.

My advice is to just nod sagely and quietly drop the trailing slash when asked. It doesn't help them in the least, but neither does it hurt you at all. (IMG:http://www.highrankings.com/forum/style_emoticons/default/smile.gif)
Go to the top of the page
 
+Quote Post
lisphacker
post Mar 29 2005, 09:34 AM
Post #4


HR 3
***

Group: Active Members
Posts: 91
Joined: 11-March 05
User's local time:
Feb 9 2010, 03:43 PM
Member No.: 6,869



Webmaster's a loose term by definition chris; that's half the problem.

In terms of the trailing slash, I can only reply with this:
QUOTE
Trailing Slash Problem

Description:
   
Every webmaster can sing a song about the problem of the trailing slash on URLs referencing directories. If they are missing, the server dumps an error, because if you say /~quux/foo instead of /~quux/foo/ then the server searches for a file named foo. And because this file is a directory it complains. Actually is tries to fix it themself in most of the cases, but sometimes this mechanism need to be emulated by you. For instance after you have done a lot of complicated URL rewritings to CGI scripts etc.
Solution:

  The solution to this subtle problem is to let the server add the trailing slash automatically. To do this correctly we have to use an external redirect, so the browser correctly requests subsequent images etc. If we only did a internal rewrite, this would only work for the directory page, but would go wrong when any images are included into this page with relative URLs, because the browser would request an in-lined object. For instance, a request for image.gif in /~quux/foo/index.html would become /~quux/image.gif without the external redirect!


From here.

In other words, in strict terms, omitting the trailing slash will cause an error in Apache. Probably other web servers too.
Go to the top of the page
 
+Quote Post
Drew-z
post Mar 29 2005, 10:17 AM
Post #5


HR 3
***

Group: Active Members
Posts: 83
Joined: 4-August 03
User's local time:
Feb 9 2010, 03:43 PM
From: Grafton, MA
Member No.: 269



QUOTE(Jen C @ Mar 29 2005, 02:51 AM)
Is there a real difference, seo or otherwise to using a trailing slash in the url? Will using a trailing slash in the urls i use for my on page anchors make any difference to seo?
*



Yes, it has for me, but probably not for the reasons you had in mind with the question originally. Also, i am referring to directory home pages and not necessarily your home page.

Think about if you needed to change your website extensions in the future for whatever reason. Say you used to be .shtml and migrated to .php for example.

If you segment your main categories by directory and then link to them using a slash (www.somesite.com/catagory1/) you can seamlessly update to a new extension without having to reindex a new page.

Since then i have noticed a few newspapers doing this and i would think that it may be for similar reasons? For example, Boston.com and their category pages.
Go to the top of the page
 
+Quote Post
seodesign
post Mar 29 2005, 11:00 AM
Post #6


HR 3
***

Group: Active Members
Posts: 64
Joined: 13-February 04
User's local time:
Feb 9 2010, 03:43 PM
Member No.: 2,512



I just wanted to ditto the server stuff.

When talking to my programmer about coding the "trailing slash" came up and he said it is something you should always do because it cause less resources on the server. A little bit less, but less.
Go to the top of the page
 
+Quote Post
Scottie
post Mar 29 2005, 12:01 PM
Post #7


Psycho Mom
Group Icon

Group: Admin
Posts: 6,124
Joined: 21-July 03
User's local time:
Feb 9 2010, 03:43 PM
From: Columbia, SC
Member No.: 3



Without the trailing slash, your stats will often report a redirected URL.
Go to the top of the page
 
+Quote Post
Tom Philo
post Mar 29 2005, 01:15 PM
Post #8


Photographer
*****

Group: Active Members
Posts: 504
Joined: 22-September 03
User's local time:
Feb 9 2010, 12:43 PM
From: Beaverton, Oregon
Member No.: 866



If you use IE and type in a domain without the trailing /, hit enter, you will see it sometimes "magically" appear.

What has happenned is:

1) a round trip request went to the server and the / has been appended onto the URI thus wasting time, bandwidth and server processes per server rule
2) The browser itself saw this omission and put it onto the domain only URI the trailing / (I don't think this is true in IE)
3) the / appending varies by server being used as a host
4) If you type in an invalid domain URI without the / as a test you will see the not found domain error return and the domain name in the address bar with a trailing / appended onto it which is what the internet specs (I believe) state is what is supposed to happen
5) Magic just happens on the Internet


In NS 7.2 it always appears to append a trailing / onto any URI typed into the address bar when you do not have a full URL to a specific document
Go to the top of the page
 
+Quote Post
Ron Carnell
post Mar 29 2005, 01:26 PM
Post #9


HR 6
Group Icon

Group: Moderator
Posts: 918
Joined: 24-July 03
User's local time:
Feb 9 2010, 02:43 PM
From: Michigan USA
Member No.: 17



QUOTE
In NS 7.2 it always appears to append a trailing / onto any URI typed into the address bar when you do not have a full URL to a specific document

That's an assumption no browser should ever make. Adding a trailing slash clearly assumes the final object referenced is a directory, and that need not be the case. We may be used to pages always having an extension, but that is just a convention and NOT a requirement. And sometimes, especially in the SEO world, there are very good reasons to eliminate the extension.

I think changing an URL should only be the result of a redirect. I don't want my software trying to correct my mistakes (that's what a wife is for!).
Go to the top of the page
 
+Quote Post
Tom Philo
post Mar 29 2005, 03:18 PM
Post #10


Photographer
*****

Group: Active Members
Posts: 504
Joined: 22-September 03
User's local time:
Feb 9 2010, 12:43 PM
From: Beaverton, Oregon
Member No.: 866



The main item to note is that if you have a URL to a end document: an .asp, .htm, .js, .txt etc file it does not append anything - since you are requestiing a true document to be retrieved. If you go to a Top Level domain, domain/directory, or any URI where you are not specifying a document, it appends the / onto it.

Putting in mydomain.com mydomain.com/dir into an address then it can append with no harm since by specs a document needs to have an extension to be referenced so it knows it is a directory target being requested and thus the server will hunt though its rules to find the default document (or allow a browse of the directory) be returned to the user.

Leaving off the trailing / is more about aestetics.

If the webmaster sets up a UNIX system to allow web files to be posted without having file extensions then it will cause problems - I would think the web program will crash since the server has NO idea how to encode, send, or to run run that file.

Creating a directory called myfile.htm on a web server would cause all sorts of problems since how is the system to know that it is a directory and not a file?

I think it is good that any URI that has no file extension be terminated with a trailing /
Go to the top of the page
 
+Quote Post
lisphacker
post Mar 29 2005, 04:22 PM
Post #11


HR 3
***

Group: Active Members
Posts: 91
Joined: 11-March 05
User's local time:
Feb 9 2010, 03:43 PM
Member No.: 6,869



QUOTE(taphilo @ Mar 29 2005, 04:18 PM)
The main item to note is that if you have a URL to a end document: an  .asp, .htm, .js, .txt etc  file it does not append anything - since you are requestiing a true document to be retrieved. If you go to a Top Level domain, domain/directory, or any URI  where you are not specifying a document, it appends the / onto it.

Putting in mydomain.com mydomain.com/dir into an address then it can append with no harm since by specs a document needs to have an extension to be referenced so it knows it is a directory target being requested and thus the server will hunt though its rules to find the default document (or allow a browse of the directory) be returned to the user.

Leaving off the trailing / is more about aestetics.

If the webmaster sets up a UNIX system to allow web files to be posted without having file extensions then it will cause problems - I would think the web program will crash since the server has NO idea how to encode, send, or to run run that file.

Creating a directory called myfile.htm on a web server would cause all sorts of problems since how is the system to know that it is a directory and not a file?

I think it is good that any URI that has no file extension be terminated with a trailing /
*

OK, at this point I must interject.

Firstly, this stuff about apache crashing is non sense. I assume you mean apache by 'web program.' Any modern httpd implementation including and especially apache automatically redirects in the case where the referant is a directory. You know, cuz apache has ways of testing that.

Secondly, that stuff in your previous post about magic and whatnot is somewhat magical itself.
Go to the top of the page
 
+Quote Post
Ron Carnell
post Mar 29 2005, 05:16 PM
Post #12


HR 6
Group Icon

Group: Moderator
Posts: 918
Joined: 24-July 03
User's local time:
Feb 9 2010, 02:43 PM
From: Michigan USA
Member No.: 17



QUOTE
<Files articles>
SetHandler application/x-httpd-php
</Files>


Tom, the above block, in .htaccess or httpd.conf, tells Apache exactly how to handle a file called articles (no extension). It's a common method for (1) avoiding query strings, and (2) hiding implementation details.

If the user wants a directory and forgets the trailing slash, the web server will issue a redirect to the correct URI. That's it's job, and it can do it well because it knows what is on the disk. A browser doesn't know, can't do the job correctly, and in my opinion, really should be trying.

It's good to know, though, Tom. When users run into problems, now I'll be able to tell them who to blame. (IMG:http://www.highrankings.com/forum/style_emoticons/default/smile.gif)

This post has been edited by Ron Carnell: Mar 29 2005, 05:22 PM
Go to the top of the page
 
+Quote Post
Walrus
post Mar 30 2005, 06:06 PM
Post #13


HR 1
*

Group: Members
Posts: 4
Joined: 7-March 04
User's local time:
Feb 9 2010, 03:43 PM
From: Gold Coast, Australia
Member No.: 2,794



Does this mean any link I have should preferably end with a "/". I use Dreamweaver and by default it never does this when using the link box in the property inspector. Not too much to worry about I guess but I have never even considered the "/" issue.
Go to the top of the page
 
+Quote Post
Raphael
post Mar 31 2005, 09:57 AM
Post #14


The Limey Cowboy
******

Group: Active Members
Posts: 722
Joined: 17-December 04
User's local time:
Feb 9 2010, 03:43 PM
From: New England
Member No.: 5,984



Trailing slashes on the end of domain names just look neater too, IMO (IMG:http://www.highrankings.com/forum/style_emoticons/default/wink.gif)

http://www.mysite.com/

looks more complete than http://www.mysite.com
Go to the top of the page
 
+Quote Post
Tom Philo
post Mar 31 2005, 12:24 PM
Post #15


Photographer
*****

Group: Active Members
Posts: 504
Joined: 22-September 03
User's local time:
Feb 9 2010, 12:43 PM
From: Beaverton, Oregon
Member No.: 866



Last time I used Apache was in 2000, things have changed since then.

I never said Apache crashed, I said that it would if it does not know how to handle that occurance, since you have to program it to handle it, and I see that that it does handle it by default per another post here, with that bit of code in its configuration settings it does know what to do with it so it does not crash. The same would be true for Windows systems (or any web server) if it did not know how to handle it.

Never knew the term was articles and that the web server had a special set of code in a config file to avoid that problem, thanks.

QUOTE
If the webmaster sets up a UNIX system to allow web files to be posted without having file extensions then it will cause problems - I would think the web program will crash since the server has NO idea how to encode, send, or to run run that file.


The magic just happens is a joke - we all know that anything that happens inside a computer is due to a programmer either writing or not writing code - a decision matrix - and everything we see is the result of that whole decision matrix of cellective programs that are supposed to work togther without any possible decision overlooked.
Go to the top of the page
 
+Quote Post

2 Pages V   1 2 >   
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



This forum is sponsored by High Rankings, a Boston SEO Agency
- Lo-Fi Version Time is now: 9th February 2010 - 02:43 PM