Regarding interal linking, should I use relative URL or not?

loginname

Regular Member
Joined
Oct 1, 2008
Messages
406
Reaction score
14
Hi

I wonder if I should use relative URL or the full URL when linking internal pages inside my website?

I've been using relative urls, but wonder if that might be wrong.
 
I read a while back that its better to use the full url and have always used that. I dont think it's makes a huge difference but every little helps!
 
I think the relative url is always better because if you want to change the domain, or clone your site or whatever, that relative url will not point back to old domain.
 
Yes, you should use relative ones. When ever you change something you don't need to change every link then.
 
While using relative URLs has advantages in terms of convenience and reduced file size, it also makes your site vulnerable to hijacking.

Code:
http://www.google.com/#hl=en&q=%22hijacking%22%2B%22relative+urls%22&aq=f&aqi=&oq=&fp=1&cad=b
 
Back
Top