View Single Post
Old 01-11-2005, 16:00   #4 (permalink)
Karim
Civilians

 
Default Re: difference between relative path and full URL

On Tue, 11 Jan 2005 11:46:15 -0500, shawn wrote:

> Hi,
>
> My question is does anyone know the difference between specifying a relative
> path such as
> <img src="images/myimg.gif"> and full URL
> <img src="http://mysite.com/images/myimg.gif">?
>
> Does the second one issue an additional http request? if so, i have all my
> images in a page with full URL, will that slow down the page download time?
>
> Best of all, is it possible to deliver both text/html and image/gif in one
> http request? I suspect that typically they are separate requsts to the
> server, right?
>
> Any pointer or insight would be appreciated.
>
> Shawn


They both work but you should use relative paths. If you change the domain
name or copy the files to another site, you have renaming to do.

Karim
--
http://www.cheapesthosting.com - Innovative Web Hosting since 1998
Spam and Virus protected email - Online calendars with email notification
Camera phone photos automatic transfers to your photo album (RSS Enabled)
  Reply With Quote
 
Page generated in 0.64688 seconds with 14 queries