Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website Design Forum


You are currently viewing our Website Design Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Internal linking without a slash
Old 03-23-2009, 01:31 AM Internal linking without a slash
Skilled Talker

Posts: 62
Name: Andrew
Trades: 0
When I link to the home page (index.html) of my site within my website, I get the following results:

<a href="/">text</a> results in www.example.com/

<a href="/index.html">text</a> results in www.example.com/index.html

Any ideas of how to create the link to where it would just be www.example.com showing in a browser after the link is clicked on (no slash or index.html)?

Thanks for any suggestions.
andrew99 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-23-2009, 02:51 AM Re: Internal linking without a slash
HighRoller23's Avatar
Skilled Talker

Posts: 67
Trades: 1
<a href="http://www.example.com/" title="home page" />Home</a>
__________________
Currently Working On:
Please login or register to view this content. Registration is FREE
HighRoller23 is offline
Reply With Quote
View Public Profile
 
Old 03-23-2009, 04:36 AM Re: Internal linking without a slash
Skilled Talker

Posts: 62
Name: Andrew
Trades: 0
HighRoller23 - thanks for the reply. I could be wrong, but your example still leaves a slash in the url once the visitor has arrived on the page. I could use the url www.example.com without the slash at the end, but this is for the internal linking of my site. For example,

in the exampe of a file: www.example.com/project1.index.html

I have set my internal links in my site set like:

<a href="/project1">text</a>

This makes sense. I just can't figure out how to link to the home page of our site (with an internal link) in this same way without creating a slash at end of url. Thanks for any suggestions.

I know using absolute urls internally within a site works, but I've seen over and over that this can slow things down. I was looking for a way to use a relative url to our home page, but that wouldn't leave a slash as the end result.

Last edited by andrew99; 03-23-2009 at 04:41 AM..
andrew99 is offline
Reply With Quote
View Public Profile
 
Old 03-23-2009, 07:38 AM Re: Internal linking without a slash
Novice Talker

Posts: 7
Trades: 0
Quote:
Originally Posted by andrew99 View Post
This makes sense. I just can't figure out how to link to the home page of our site (with an internal link) in this same way without creating a slash at end of url.
andrew99, have you ever seen a home page of any site without slash at the end? Its being added automaticaly, you cant do nothing about it, If I understand correctly what you are trying to do.
AndrijaM is offline
Reply With Quote
View Public Profile Visit AndrijaM's homepage!
 
Old 03-23-2009, 07:49 AM Re: Internal linking without a slash
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,378
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
@andrew99
re-read your thread at http://www.webmaster-talk.com/websit...-question.html
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-23-2009, 09:24 AM Re: Internal linking without a slash
PBScott's Avatar
Extreme Talker

Posts: 160
Name: Scott
Location: Canada
Trades: 1
You can mabey do server side redirects without the slash, if I know what your talking about.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
PBScott is offline
Reply With Quote
View Public Profile
 
Old 03-23-2009, 02:02 PM Re: Internal linking without a slash
Skilled Talker

Posts: 62
Name: Andrew
Trades: 0
chrishirst - Just wanted to let you know I wasn't trying to beat the issue with a stick. In the other topic you mentioned, I learned a lot and have made the changes in my site as a result. I just got hung up on how to link the index page internally.

I couldn't figure out how to do it without using a slash, and I was concerned using a slash would result in the search engines seeing our index page in two different ways (one with a slash and one without a slash). I was trying to create consistency - emphasize one url instead of two.

Even if I am not using slashes in the rest of my internal linking, I guess to link to the homepage, based on what is said here, I would use <a href="/">Home</a>

Let me know if this is the best way. Thanks for the suggestions.
andrew99 is offline
Reply With Quote
View Public Profile
 
Old 03-23-2009, 06:04 PM Re: Internal linking without a slash
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,378
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
With SEs the slash/noslash URIs are treated as identical because of the server redirect. Only when two different URIs produce a 200 response for the same content does it cause potential "issues".
IF you have .htaccess rewritten/aliased URIs (the so called "search engine friendly" URLs) these can be a problem because there will be no automatic server redirect.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-23-2009, 06:55 PM Re: Internal linking without a slash
Skilled Talker

Posts: 62
Name: Andrew
Trades: 0
I found this helpful resource on URI aliases: http://www.w3.org/TR/webarch/

chrishirst - just wanted to clarify. If what I'm understanding is correct, you are suggesting staying away from server side redirects (unless it's something link a 301, 302, etc). And for the internal linking within a site, stick with something like <a href="/">Home</a> for linking to the home page of that site?

So essentailly <a href="/">Home</a> will not be a URI aliase of http://www.mysite.com (for example, in the case of a backlink). URI aliases I guess is what we are trying to avoid. Thanks for any suggestions.
andrew99 is offline
Reply With Quote
View Public Profile
 
Old 03-23-2009, 07:22 PM Re: Internal linking without a slash
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,378
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
If what I'm understanding is correct, you are suggesting staying away from server side redirects
On the contrary, use redirects wherever necessary to keep duplicate content URIs to a minimum.

I'm not you have really grasped the entire concept of URI aliases, they are very useful when controlled properly and not simply abused into a keyword stuffing exercise.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-23-2009, 07:49 PM Re: Internal linking without a slash
Skilled Talker

Posts: 62
Name: Andrew
Trades: 0
chrishirst - I will have to do research into this (URI aliases). I use a lot of 301 redirects in my .htaccess, but that's about it.

As far as the internal linking to homepage issue, for now would you recommend I use something like <a href="/">Home</a> in my site, or will this cause issues with URI aliases (search engines seeing this as two different URIs because backlinks are just www.mysite.com)?
andrew99 is offline
Reply With Quote
View Public Profile
 
Old 03-24-2009, 03:17 AM Re: Internal linking without a slash
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,378
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
As far as the internal linking to homepage issue, for now would you recommend I use something like <a href="/">Home</a> in my site, or will this cause issues with URI aliases (search engines seeing this as two different URIs because backlinks are just www.mysite.com)?
That's perfectly ok. User Agent perform an operation called "normalisation" with URIs.
If the href value is not an absolute address, the HTTP_HOST value is prepended to the href. So a "/" is treated as the site root, and;
Not only would I recommend using the "/" as a "home" page href I would insist that it is used.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-24-2009, 04:04 AM Re: Internal linking without a slash
Skilled Talker

Posts: 62
Name: Andrew
Trades: 0
point well taken - thanks.
andrew99 is offline
Reply With Quote
View Public Profile
 
Old 03-31-2009, 07:29 AM Re: Internal linking without a slash
Average Talker

Posts: 15
Name: Mike
Location: Sydney
Trades: 0
If you are worried about search engines, then I think you should be using absolute urls, even for the home page. More page-rank is passed to an absolute URL than to a relative URL.
__________________

Please login or register to view this content. Registration is FREE
SydneyWeb is offline
Reply With Quote
View Public Profile Visit SydneyWeb's homepage!
 
Old 03-31-2009, 10:31 AM Re: Internal linking without a slash
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Quote:
More page-rank is passed to an absolute URL than to a relative URL
Says who ?? I don't believe absolute vs relative has anything at all to do with it.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Internal linking without a slash
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.43319 seconds with 12 queries