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

View Poll Results: Which ones are better?
Absolute URLs 0 0%
Relative URLs 2 66.67%
Neither is better than the other 1 33.33%
Voters: 3. You may not vote on this poll

Reply
Absolute or Relative URL's for Site Navigation?
Old 11-01-2008, 01:32 PM Absolute or Relative URL's for Site Navigation?
jamestl2's Avatar
No scale-itch here...

Latest Blog Post:
Wordpress Relative URLs Plugin
Posts: 2,389
Name: <member type="brilliant" alt="foolish">James Lewitzke</member>
Location: / public_html / Universe / Virgo_Supercluster / Local_Group / Milky_Way / Orion_Arm / Solar_System / Earth / North_America / USA / Wisconsin
Trades: 0
Which ones are better to use? I was under the impression that shorter ones are easier to maintain and are just better to use for internal structure, but I'm not an experienced coder / designer, so I wasn't completely sure.

I don't think I'll be changing domains once my project is completed, and I won't be messing with the directory structure of my site either, so the folders and files won't be in different places once it's completed, so I don't see any potential problems on that front.

Also are there any server performance benefits for one over the other? I haven't noticed anything significant on my other sites, but I wanted to get some insight as I'm beginning design work throughout my project.



PS, for those that don't know:

Absolute URL Example =
Code:
http://www.example.com/about.html
Relative URL Example =
Code:
../about.html
__________________
Engipress -
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
for Wordpress Projects
jamestl2 is offline
Reply With Quote
View Public Profile Visit jamestl2's homepage!
 
 
Register now for full access!
Old 11-01-2008, 03:00 PM Re: Absolute or Relative URL's for Site Navigation?
pealo86's Avatar
Super Spam Talker

Posts: 876
Name: Matt Pealing
Location: England, north west
Trades: 0
As far as I know there aren't any performance differences, but I could be wrong. I always stick to using relative URL's as they are easier to maintain, plus Dreamweaver helps a lot for keeping my URL's up to date.

I did use absolute URL's in the 'Latest Portfolio Additions' section on my website however, this way I didn't have to go through the painful process of setting each link on each page depending on what subfolder it was in . Although this is a bit of a pain for when Im testing my site locally.
__________________

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

Last edited by pealo86; 11-01-2008 at 03:01 PM..
pealo86 is offline
Reply With Quote
View Public Profile Visit pealo86's homepage!
 
Old 11-01-2008, 03:39 PM Re: Absolute or Relative URL's for Site Navigation?
JohnDiamond's Avatar
Extreme Talker

Posts: 171
Name: John Diamond
Trades: 0
Personally, I always use a mix of the two. I like having Absolute links for document files or PDF files as it allows users to copy the link address more easily (ie: if they want to send the link to a friend by e-mail, etc.) Other than that, I usually use relative URLs because 1) they are shorter 2) it's easier to move to another domain name later on.

Will using Absolute URLs help with my Google Ranking? This has been debated before and the general response was that Google doesn't care whether it is absolute or relative.
__________________
John

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
JohnDiamond is offline
Reply With Quote
View Public Profile
 
Old 11-02-2008, 09:37 AM Re: Absolute or Relative URL's for Site Navigation?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,391
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
Will using Absolute URLs help with my Google Ranking? This has been debated before and the general response was that Google doesn't care whether it is absolute or relative.
Nope.

There is ABSOLUTELY NO difference where the server performance is concerned, user agents will "normalise" relative references before requesting the document URI.
If you had a pages with thousands of images on it, using absolute addressing for the image URIs might save a few microseconds of client processing time.

Be aware that using the ../ syntax can mean different things depending on how, where and in what document it is used in.
Each ../ is normalised as referencing the folder above the current location. If all documents are in the root directory it will be ignored because HTML cannot traverse folders above the root, but using ../filename.ext from a subfolder, say "/aboutus/" will actually point to a document located in the root directory. When you go another folder down, "/aboutus/company/", ../filename.ext will be referencing a resource located in the "/aboutus/" folder.

The safest way is to use "root relative addressing" and start all URIs with a forward slash and qualify the full path to the resource.
__________________
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 11-02-2008, 02:47 PM Re: Absolute or Relative URL's for Site Navigation?
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Relative paths are better, because they are more portable. If you are developing a site, but not placing it in the main directory, or are putting it on a subdomain which is not its final location, relative paths can be moved over very easily, while absolute paths will all have to be rewritten before moving the site. As Chris points out, there are no benefits with search engines when it comes to how paths are expressed. Absolute paths simply mean more work, and I see no reason to use them.
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 11-02-2008, 04:46 PM Re: Absolute or Relative URL's for Site Navigation?
jamestl2's Avatar
No scale-itch here...

Latest Blog Post:
Wordpress Relative URLs Plugin
Posts: 2,389
Name: <member type="brilliant" alt="foolish">James Lewitzke</member>
Location: / public_html / Universe / Virgo_Supercluster / Local_Group / Milky_Way / Orion_Arm / Solar_System / Earth / North_America / USA / Wisconsin
Trades: 0
This IS going to be a standalone site (meaning it's being built from scratch and won't have anything to do with my existing ones).

I will probably be adding a few sections to the site where they'll sit on a subdomain, but it'll be reading everything from a database, and I don't see URLs as an issue for it right now.

But I haven't gotten far enough yet for that though .


Also, SE rankings and placements don't really concern me enough to be an issue. My site won't really be relying on them for stabilization or anything, as it's more of a personal experimentation project for me.
__________________
Engipress -
Please login or register to view this content. Registration is FREE


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

Last edited by jamestl2; 11-02-2008 at 04:54 PM..
jamestl2 is offline
Reply With Quote
View Public Profile Visit jamestl2's homepage!
 
Old 11-02-2008, 05:47 PM Re: Absolute or Relative URL's for Site Navigation?
Skilled Talker

Posts: 55
Name: Beni
Trades: 0
As far as i can, i try to put relative URLs, but you have to be careful with RewriteRules and .htaccess, or navigation may become crazy and start doing whatever it wants
__________________

Please login or register to view this content. Registration is FREE
- Submit your websites and trade links

Please login or register to view this content. Registration is FREE
- Aprende a programar

Please login or register to view this content. Registration is FREE
- Resultados en los índices bursátiles
rewy is offline
Reply With Quote
View Public Profile Visit rewy's homepage!
 
Old 11-02-2008, 07:51 PM Re: Absolute or Relative URL's for Site Navigation?
Defies a Status

Posts: 1,606
Trades: 0
Relative works on localhost and when the site is FTPed to the server. That is the main reason I prefer it.
__________________
Colbyt

Please login or register to view this content. Registration is FREE
colbyt is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Absolute or Relative URL's for Site Navigation?
 

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.45329 seconds with 13 queries