Forum Moderators: open

Message Too Old, No Replies

Absolute or Relative Links MK#2

Some things ive decided upon

         

leef50

3:15 pm on Jan 13, 2003 (gmt 0)

10+ Year Member



Well, after reading some of the posts in the last thread I have decided to use rel links for images and abs links for all other links. The rel links will be:

/images
as opposed to
../images

Since I feel having the domain name within internal links is something google likes and it has worked for me thus far. Main reason is I am trying to slim my HTML down as much as possible and so do not want an extra 25 bytes of data for each image im showing. What do you guys and gals think?

korkus2000

3:55 pm on Jan 13, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I use absolute only because I use includes and if I have a page in a sub directory the browser would not be able to find it. I would probably do the same as you if I didn't use includes.

leef50

4:03 pm on Jan 13, 2003 (gmt 0)

10+ Year Member



Um, well I too use includes and this does not seem to affected at the moment since once the page has been included its files would be govorned by the file doing the including and not the included file. Or am I wrong here? Seems to be working for me anyway.

korkus2000

4:07 pm on Jan 13, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If I have a page

domainname.com/page.htm

My images would be fine /images

If I have

domainname.com/sub/page.htm

Inside the sub folder there is no images folder so it breaks at least in asp.

leef50

4:42 pm on Jan 13, 2003 (gmt 0)

10+ Year Member



It should work just fine since / tells it to start at the document root so /images/test.gif is not the same as images/test.gif. Since the latter would require ../images/test.gif to work. If you have / at the start you will be fine.

korkus2000

4:58 pm on Jan 13, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Sorry about not explaining I have different domains across a folder structure. I need absolutes for what I am doing to work dynamically and use includes. The sites are relatives so the includes are built by the domain.