Forum Moderators: open
I want to link to a sub folder, let's call it "sub".
Which way is the best to link?
a.) /sub
b.) /sub/
c.) /sub/index.htm
d.) http://www.mydomain/sub
e.) http://www.mydomain/sub/
f.) http://www.mydomain/sub/index.htm
Does it really make any difference at all?
As a matter of fact I've noticed that where I've used a filename in a link - eg myfile.htm - Sim Spider connects it to the domain without the slash, so I've tended to do links to a file as /myfile.htm. I'm not sure if this matters.
I don't quite follow your last part, what do you mean by
Sim Spider connects it to the domain without the slash?
The slash (/) would tell the spider that there is a folder following the slash wouldn't it? If you have a link in the same folder then you couldn't have the slash could you?
I've looked at some of the top SEO sites and some do actually link this way - with the slash in front of the filename.
So for minimal server load (as above), the ability to change your page extension (maybe to .php or .aspx) without rewriting links, and the ability to move you site to another domain without rewriting links, option b.) is the best.
for minimal server load
You don't need to specify the filename of a file if it is the default page that is to be served, and it also allows you to change technology (say, from index.html to index.php instead) without having to alter any internal or incoming external links.
A trailing / on the end of folder names gives both the browser and server one less step to do, and is also recommended.
Also, if you use .../dir/ for your internal links, that's what will show up in the address bar, improving the chance of getting the URL formed the way you'd prefer when someone links to you "from the wild".
I can't prove this, but I'm firmly convinced that being as consistent as possible in how your links are formed, both internal and inbound, is A Good Thing.
If you just had links to www.domain.com/ and www.domain.com/folder/ you need change nothing when your technology changes.
So does it make a difference if it "is" in another folder but I take out the /?
Let's say I take this:
[mysite.com...]
and keep the same amount of folders but make the url:
[mysite.com...]
Will that help with google any?