Forum Moderators: open
When linking internally, which is the best method?
I would go for href=bluewidgets.htm every time.
is a text nav bar both at the top and bottom of every page too much?
I'm no expert on this, but I hope not! :)
Use the abbreviated href=bluewidgets.htm for all your regular links and insert the following tag into your header.
<base href="www.widgets.com/" target="_top">
Use the full URL in your sitemap (if you have one). I believe I read somewhere that Google likes full URL paths. The sitemap will ensure Google crawls every page.
Ted
/bluewidget.htm
I used to specify [domain.com...] waaay back when, but I am finding that (even still to this day) some web browsers will do a DNS lookup again (each time it does not see a same site relative URL like the first 2 examples). That wastes time and uses another browser-server connection. So, on a technical end, it is best to either start with /directory/directory/file.htm type format or file.htm even. Not too many resources, but it does save them (if your page is image heavy, it might be a decent amount of resources actually).
- Rob
insert the following tag into your header. <base href="www.widgets.com/" target="_top">
If you do that you will have to change the <base> tag if you move a page to a different directory. If you keep all links relative, then you can move a cluster of directories anywhere in the site and the internal links will still work.
The attribute 'target' is deprecated in XHTML transitional, and its not a good idea to start using a technique which is on its way out.
There is no need to use full urls on a sitemap, as Google treats it the same as every other page.