5 replies [Last post]
t-bone_two
t-bone_two's picture
User offline. Last seen 8 weeks 6 days ago. Offline
rank Enthusiast
Enthusiast
Timezone: GMT-8
Joined: 2009-09-26
Posts: 172
Points: 211

So the question is somewhat self explanatory.

My earlier sites were all relative. But as I have implemented more PHP and some other things that consolidate directories I have begun to rely almost exclusively on Absolute.

I don't really have a preference. I know it takes longer and adds weight to the code. But I find it more "sure" for my personal needs.

As it is something I came to consider today. It has opened a host of questions.

It does increase page weight.
1. Does it effect SEO?
2. Does it have disadvantages besides additional time and weight?

I find it has some organizational advantages.

I would like to hear your thoughts on the pros and cons.

Thanks!

Tags:
CupidsToejam
CupidsToejam's picture
User offline. Last seen 2 weeks 1 day ago. Offline
rank Guru
Guru
Timezone: GMT-6
Joined: 2008-08-15
Posts: 2634
Points: 1552

i prefer Absolute URLS, it

i prefer Absolute URLS, it leaves less room for error, and more php friendly. I believe it adds weight to the code, but not enough where anybody will notice. I believe Absolute URLS are best when searching for images through google, or another search provider. I dont think the images will show up in the image search results with relative paths.


First basic few steps in building a webpage
1. Gather and collect content.
2. Organize the content into meaningful semantic valid HTML
3. Design the prototype
4. Style using CSS

http://www.pixelbehavior.com

Vade
Vade's picture
User offline. Last seen 1 year 10 weeks ago. Offline
rank Enthusiast
Enthusiast
Joined: 2007-08-13
Posts: 315
Points: 276

I nearly always use relative

I nearly always use relative paths, not for any particular reason it's just the way I started and so it's how I go on.

CTJ, I just did a search for some images that I have on my sites using relative paths and they do show up, one less thing to worry about Smile

flamenco
flamenco's picture
User offline. Last seen 1 year 4 weeks ago. Offline
rank Enthusiast
Enthusiast
Timezone: GMT-5
Joined: 2009-04-13
Posts: 240
Points: 144

I enjoy relative paths, for

I enjoy relative paths, for the selfish reason that I end up moving sites all the time, and don't want to recode every silly image path. And yes, I already know that I can do SQL updates, and do that sometimes. (Wordpress, I'm talkin to you!) Smile

Verschwindende
Verschwindende's picture
User offline. Last seen 6 days 11 hours ago. Offline
rank Guru
Guru
Timezone: GMT-5
Joined: 2009-10-09
Posts: 2037
Points: 2256

I'm an American. A free man.

I'm an American. A free man. I can choose either, or none, or both. I guess my answer is I use what's required.

yet again.

Tyssen
Tyssen's picture
User offline. Last seen 12 hours 19 min ago. Offline
rank Moderator
Moderator
Timezone: GMT+10
Joined: 2004-05-01
Posts: 8123
Points: 1302

About the only advantage I

About the only advantage I can see in using absolute links is that it makes it harder for people to steal your content. For example, somebody ripped off a couple of articles from my site once. They were pretty lazy about it though, they just copied the whole contents of the article without editing anything which contained links to other pages on my site, which meant I got a pingback from the site to alert me to the fact.

How to get help
Post a link. If you can't post a link, jsFiddle it.
My blog | My older articles | CSS Reference